Loading js/theme-helper-main.js +9 −17 Original line number Diff line number Diff line Loading @@ -87,20 +87,12 @@ function replaceNavbarIcons() { $("#header .header-right .magnify-icon").empty(); /* Notifications icon(Replace src on load) */ // Select the entire DOM for observing: const target = document.getElementById("header"); // Create a new observer instance: const observer = new MutationObserver(function () { const notifImgSelector = "#header .notifications .notifications-button img"; if ($(notifImgSelector).length > 0) { replaceNotificationIcon(notifImgSelector); observer.disconnect(); } $(notifImgSelector).on("load", function () { replaceNotificationIcon(notifImgSelector); }); // Set configuration object: const config = { childList: true, subtree: true }; // Start the observer observer.observe(target, config); } function replaceActivityIcons() { Loading @@ -118,7 +110,7 @@ function replaceActivityIcons() { comments: getSvgLinkCore("actions", "comment", ""), deck: getSvgLinkApp("deck", "deck-dark", ""), contacts: getSvgLinkCore("places", "contacts", ""), user_settings: getSvgLinkApp("e-user-support-center", "app", ""), user_settings: getSvgLinkApp("e-user-support-center", "app", "") }; let currentActive = ""; Loading Loading @@ -274,6 +266,6 @@ $(document).ready(function () { replaceSettingsSectionIcons(); } } $('#app-navigation [data-id="trashbin"]').removeClass("pinned first-pinned"); $('#app-navigation [id="quota"]').addClass("pinned first-pinned"); $('#app-navigation [data-id="trashbin"]').removeClass('pinned first-pinned'); $('#app-navigation [id="quota"]').addClass('pinned first-pinned'); }); Loading
js/theme-helper-main.js +9 −17 Original line number Diff line number Diff line Loading @@ -87,20 +87,12 @@ function replaceNavbarIcons() { $("#header .header-right .magnify-icon").empty(); /* Notifications icon(Replace src on load) */ // Select the entire DOM for observing: const target = document.getElementById("header"); // Create a new observer instance: const observer = new MutationObserver(function () { const notifImgSelector = "#header .notifications .notifications-button img"; if ($(notifImgSelector).length > 0) { replaceNotificationIcon(notifImgSelector); observer.disconnect(); } $(notifImgSelector).on("load", function () { replaceNotificationIcon(notifImgSelector); }); // Set configuration object: const config = { childList: true, subtree: true }; // Start the observer observer.observe(target, config); } function replaceActivityIcons() { Loading @@ -118,7 +110,7 @@ function replaceActivityIcons() { comments: getSvgLinkCore("actions", "comment", ""), deck: getSvgLinkApp("deck", "deck-dark", ""), contacts: getSvgLinkCore("places", "contacts", ""), user_settings: getSvgLinkApp("e-user-support-center", "app", ""), user_settings: getSvgLinkApp("e-user-support-center", "app", "") }; let currentActive = ""; Loading Loading @@ -274,6 +266,6 @@ $(document).ready(function () { replaceSettingsSectionIcons(); } } $('#app-navigation [data-id="trashbin"]').removeClass("pinned first-pinned"); $('#app-navigation [id="quota"]').addClass("pinned first-pinned"); $('#app-navigation [data-id="trashbin"]').removeClass('pinned first-pinned'); $('#app-navigation [id="quota"]').addClass('pinned first-pinned'); });