We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47994b commit 7afb045Copy full SHA for 7afb045
starters/chrome/extension/popup/controller.js
@@ -1,9 +1,8 @@
1
(async () => {
2
3
// Import JS resources
4
- await import(chrome.runtime.getURL('components/icons.js'))
5
- await import(chrome.runtime.getURL('lib/dom.js'))
6
- await import(chrome.runtime.getURL('lib/settings.js'))
+ for (const resource of ['components/icons.js', 'lib/dom.js', 'lib/settings.js'])
+ await import(chrome.runtime.getURL(resource))
7
8
// Init ENV context
9
const env = { site: /([^.]+)\.[^.]+$/.exec(new URL((await chrome.tabs.query(
0 commit comments