Move the code that shows the Edge popup back to PlayerData
This commit is contained in:
parent
1e8fd6aad4
commit
804509b3c5
@ -564,11 +564,8 @@ class ArDetector {
|
|||||||
this.drmNotificationShown = true;
|
this.drmNotificationShown = true;
|
||||||
|
|
||||||
// if we detect Edge, we'll throw the aggressive popup
|
// if we detect Edge, we'll throw the aggressive popup
|
||||||
if (BrowserDetect.isEdgeUA() && !this.settings.active.mutedNotifications?.browserSpecific?.edge?.brokenDrm?.[window.hostname]) {
|
this.conf.player.showEdgeNotification();
|
||||||
new PlayerUi(this.element, this.settings);
|
this.conf.player.showNotification('AARD_DRM');
|
||||||
} else {
|
|
||||||
this.conf.player.showNotification('AARD_DRM');
|
|
||||||
}
|
|
||||||
|
|
||||||
this.conf.resizer.setAr({type: AspectRatio.Reset});
|
this.conf.resizer.setAr({type: AspectRatio.Reset});
|
||||||
return;
|
return;
|
||||||
|
@ -480,6 +480,15 @@ class PlayerData {
|
|||||||
showNotification(notificationId) {
|
showNotification(notificationId) {
|
||||||
this.notificationService?.showNotification(notificationId);
|
this.notificationService?.showNotification(notificationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NOTE: this method needs to be deleted once Edge gets its shit together.
|
||||||
|
*/
|
||||||
|
showEdgeNotification() {
|
||||||
|
if (BrowserDetect.isEdgeUA() && !this.settings.active.mutedNotifications?.browserSpecific?.edge?.brokenDrm?.[window.hostname]) {
|
||||||
|
this.ui = new PlayerUi(this.element, this.settings);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.CHANNEL !== 'stable'){
|
if (process.env.CHANNEL !== 'stable'){
|
||||||
|
Loading…
Reference in New Issue
Block a user