Skip to content

Commit

Permalink
Renamed modules to end w/ '.mjs' to simplify eslint.config.mjs ↞ [aut…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Nov 27, 2024
1 parent 831c831 commit 9491b46
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion chromium/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'chatgpt-auto-continue-extension-installed', true)

// Import LIBS
const { config, settings } = await import(chrome.runtime.getURL('lib/settings.js'))
const { config, settings } = await import(chrome.runtime.getURL('lib/settings.mjs'))
await import(chrome.runtime.getURL('lib/chatgpt.js'))

// Import APP data
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion chromium/extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"action": { "default_popup": "popup/index.html" },
"web_accessible_resources": [{
"matches": [ "<all_urls>" ],
"resources": [ "lib/chatgpt.js", "lib/settings.js" ]
"resources": [ "lib/chatgpt.js", "lib/settings.mjs" ]
}],
"content_scripts": [{
"matches": [ "https://chatgpt.com/*" ],
Expand Down
4 changes: 2 additions & 2 deletions chromium/extension/popup/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

// Import LIBS
await import(chrome.runtime.getURL('lib/dom.js'))
const { config, settings } = await import(chrome.runtime.getURL('lib/settings.js'))
const { config, settings } = await import(chrome.runtime.getURL('lib/settings.mjs'))

// Ipmort APP data
const { app } = await chrome.storage.sync.get('app')

// Import ICONS
const { icons } = await import(chrome.runtime.getURL('components/icons.js'))
const { icons } = await import(chrome.runtime.getURL('components/icons.mjs'))
icons.appProps = app // for src's using urls.mediaHost

// Define FUNCTIONS
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion firefox/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'chatgpt-auto-continue-extension-installed', true)

// Import LIBS
const { config, settings } = await import(chrome.runtime.getURL('lib/settings.js'))
const { config, settings } = await import(chrome.runtime.getURL('lib/settings.mjs'))
await import(chrome.runtime.getURL('lib/chatgpt.js'))

// Import APP data
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion firefox/extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"action": { "default_popup": "popup/index.html" },
"web_accessible_resources": [{
"matches": [ "<all_urls>" ],
"resources": [ "lib/chatgpt.js", "lib/settings.js" ]
"resources": [ "lib/chatgpt.js", "lib/settings.mjs" ]
}],
"content_scripts": [{
"matches": [ "https://chatgpt.com/*" ],
Expand Down
4 changes: 2 additions & 2 deletions firefox/extension/popup/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

// Import LIBS
await import(chrome.runtime.getURL('lib/dom.js'))
const { config, settings } = await import(chrome.runtime.getURL('lib/settings.js'))
const { config, settings } = await import(chrome.runtime.getURL('lib/settings.mjs'))

// Ipmort APP data
const { app } = await chrome.storage.sync.get('app')

// Import ICONS
const { icons } = await import(chrome.runtime.getURL('components/icons.js'))
const { icons } = await import(chrome.runtime.getURL('components/icons.mjs'))
icons.appProps = app // for src's using urls.mediaHost

// Define FUNCTIONS
Expand Down

0 comments on commit 9491b46

Please sign in to comment.