From b9b036c7eb19dce1b4a996915dcfdfda18b2c6ca Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 13 Apr 2025 20:35:57 +0530 Subject: Config sync --- modules/firefox.home/chrome/customNewTab.uc.js | 8 ++++++++ modules/firefox.home/chrome/globalKeybindings.uc.js | 4 ++++ 2 files changed, 12 insertions(+) (limited to 'modules/firefox.home/chrome') diff --git a/modules/firefox.home/chrome/customNewTab.uc.js b/modules/firefox.home/chrome/customNewTab.uc.js index 3a3a47e..4c8faca 100644 --- a/modules/firefox.home/chrome/customNewTab.uc.js +++ b/modules/firefox.home/chrome/customNewTab.uc.js @@ -10,6 +10,10 @@ // Managed in about:config const NEWTAB_URL_PREF = 'browser.newtab.url' + console.log('-------------------------------------------'); + console.log('-------------------------------------------'); + console.log('-------------------------------------------'); + if (!AboutNewTab) { globalThis.AboutNewTab = ChromeUtils.import('resource:///modules/AboutNewTab.jsm').AboutNewTab; } @@ -24,6 +28,10 @@ }, init() { + console.log('-------------------------------------------'); + console.log('init new tab'); + console.log('-------------------------------------------'); + module.updateNewTabURL(); Services.obs.addObserver(module.updateNewTabURL, 'newtab-url-changed'); }, diff --git a/modules/firefox.home/chrome/globalKeybindings.uc.js b/modules/firefox.home/chrome/globalKeybindings.uc.js index 204a510..d8c0f51 100644 --- a/modules/firefox.home/chrome/globalKeybindings.uc.js +++ b/modules/firefox.home/chrome/globalKeybindings.uc.js @@ -139,6 +139,10 @@ }, init(win) { + console.log('-------------------------------------------'); + console.log('init keys'); + console.log('-------------------------------------------'); + const observe = () => { Services.obs.removeObserver(observe, 'browser-window-before-show'); module.onWindowReady(win) -- cgit v1.3.1