mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
[Pale-Moon] No Issue - ifdef hide/showChrome sync-notifications code
This commit is contained in:
parent
0691dfb5ba
commit
5d7a2b8793
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue