Skip to content

Commit

Permalink
fix indefinte chrome loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mubaidr committed Feb 10, 2025
1 parent 57a237a commit 14c4357
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
devtools_page: "src/devtools/index.html",
options_page: "src/ui/options-page/index.html",
offline_enabled: true,
host_permissions: [],
host_permissions: ["<all_urls>"],
permissions: ["storage", "tabs", "background", "sidePanel"],
web_accessible_resources: [],
icons: {
Expand Down
8 changes: 8 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export default defineConfig({
rollupOptions: {
// ui or pages that are not specified in manifest file need to be specified here
input: {
contentScript: "src/content-script/index.ts",
setup: "src/ui/setup/index.html",
iframe: "src/ui/content-script-iframe/index.html",
devtoolsPanel: "src/ui/devtools-panel/index.html",
Expand All @@ -203,6 +204,9 @@ export default defineConfig({
port: PORT,
},
origin: `http://localhost:${PORT}`,
cors: {
origin: "*",
},
},

optimizeDeps: {
Expand All @@ -211,4 +215,8 @@ export default defineConfig({
},

define,

legacy: {
skipWebSocketTokenCheck: true,
},
})

0 comments on commit 14c4357

Please # to comment.