Skip to content

Commit

Permalink
fix: bump client and restore debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Nov 22, 2022
1 parent 4e17043 commit a96cf20
Show file tree
Hide file tree
Showing 3 changed files with 6,832 additions and 3,097 deletions.
8 changes: 6 additions & 2 deletions add-on/src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ browser.runtime.setUninstallURL(getUninstallURL(browser))

// init add-on after all libs are loaded
document.addEventListener('DOMContentLoaded', async () => {
// setting debug level early
localStorage.debug = (await browser.storage.local.get({ logNamespaces: optionDefaults.logNamespaces })).logNamespaces
// setting debug namespaces require page reload to get applied
const debugNs = (await browser.storage.local.get({ logNamespaces: optionDefaults.logNamespaces })).logNamespaces
if (debugNs !== localStorage.debug) {
localStorage.debug = debugNs
window.location.reload()
}
// init inlined to read updated localStorage.debug
window.ipfsCompanion = await createIpfsCompanion()
})
Loading

0 comments on commit a96cf20

Please sign in to comment.