[Pale-Moon] No Issue - ifdef hide/showChrome sync-notifications code

This commit is contained in:
Matt A. Tobin 2022-01-12 20:47:54 -06:00 committed by roytam1
commit 5d7a2b8793

View file

@ -2632,12 +2632,14 @@ var PrintPreviewListener = {
this._chromeState.globalNotificationsOpen = !globalNotificationBox.notificationsHidden;
globalNotificationBox.notificationsHidden = true;
#ifdef MOZ_SERVICES_SYNC
this._chromeState.syncNotificationsOpen = false;
var syncNotifications = document.getElementById("sync-notifications");
if (syncNotifications) {
this._chromeState.syncNotificationsOpen = !syncNotifications.notificationsHidden;
syncNotifications.notificationsHidden = true;
}
#endif
},
_showChrome: function() {
@ -2658,9 +2660,11 @@ var PrintPreviewListener = {
document.getElementById("global-notificationbox").notificationsHidden = false;
}
#ifdef MOZ_SERVICES_SYNC
if (this._chromeState.syncNotificationsOpen) {
document.getElementById("sync-notifications").notificationsHidden = false;
}
#endif
}
}