diff options
| -rw-r--r-- | background.js | 14 | ||||
| -rw-r--r-- | inject-css.js | 2 | ||||
| -rw-r--r-- | manifest.json | 2 | ||||
| -rw-r--r-- | popup/popup.html | 4 | ||||
| -rw-r--r-- | popup/popup.js | 2 | 
5 files changed, 12 insertions, 12 deletions
diff --git a/background.js b/background.js index 3a8a958..067bad7 100644 --- a/background.js +++ b/background.js @@ -1,4 +1,4 @@ -let logging = true; +let logging = false;  async function applyCSSToTab(tab) {    if (logging) console.log("applyCSSToTab called with", tab); @@ -103,9 +103,9 @@ browser.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {    }  }); -// browser.tabs.onActivated.addListener(async (activeInfo) => { -//   if (logging) console.log("onActivated called with", activeInfo); -//   // Apply CSS when a tab is activated -//   const tab = await browser.tabs.get(activeInfo.tabId); -//   applyCSSToTab(tab); -// }); +browser.tabs.onActivated.addListener(async (activeInfo) => { +  if (logging) console.log("onActivated called with", activeInfo); +  // Apply CSS when a tab is activated +  const tab = await browser.tabs.get(activeInfo.tabId); +  applyCSSToTab(tab); +}); diff --git a/inject-css.js b/inject-css.js index 7d009cc..fc1fc0f 100644 --- a/inject-css.js +++ b/inject-css.js @@ -1,4 +1,4 @@ -let logging = true; +let logging = false;  if (logging) console.log("inject-css.js script loaded"); diff --git a/manifest.json b/manifest.json index 1c89cd4..235dc9e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@  {    "manifest_version": 2,    "name": "Zen Internet", -  "version": "1.2.2", +  "version": "1.3.0",    "description": "Inject custom css from my repository in real time",    "browser_specific_settings": {      "gecko": { diff --git a/popup/popup.html b/popup/popup.html index 4c20a90..1dda5cd 100644 --- a/popup/popup.html +++ b/popup/popup.html @@ -64,11 +64,11 @@      <footer class="app-footer">        <a href="https://sameerasw.github.io/my-internet/" class="footer-link" target="_blank"> -        <i class="fas fa-book"></i> Styles Repository +        <i class="fas fa-book"></i> Styles        </a>        <div class="footer-divider"></div>        <a href="https://github.com/sameerasw/my-internet/issues/new/choose" class="footer-link" target="_blank"> -        <i class="fa-brands fa-github"></i> Issues? Theme Requests? +        <i class="fa-brands fa-github"></i> Bug?        </a>      </footer>    </div> diff --git a/popup/popup.js b/popup/popup.js index 5f893ea..79edaa9 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -1,4 +1,4 @@ -let logging = true; +let logging = false;  new (class ExtensionPopup {    BROWSER_STORAGE_KEY = "transparentZenSettings";  | 
