From 5d7a2b879335fc3f42c0777b24bdc05ef8c90849 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Wed, 12 Jan 2022 20:47:54 -0600 Subject: [PATCH] [Pale-Moon] No Issue - ifdef hide/showChrome sync-notifications code --- application/palemoon/base/content/browser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js index f5cc4913f9..fa4180f845 100644 --- a/application/palemoon/base/content/browser.js +++ b/application/palemoon/base/content/browser.js @@ -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 } }