Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sgzsh269 committed Dec 31, 2023
1 parent c38e7da commit 500defb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions manifest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const { version } = packageJson;
const [major, minor, patch] = version.replace(/[^\d.-]+/g, "").split(/[.-]/);

const icons = {
"16": "icon.png",
"32": "icon.png",
"48": "icon.png",
"128": "icon.png",
"16": "public/icon.png",
"32": "public/icon.png",
"48": "public/icon.png",
"128": "public/icon.png",
};

export default defineManifest(async (env) => ({
Expand All @@ -28,7 +28,7 @@ export default defineManifest(async (env) => ({
default_icon: icons,
default_title: APP_NAME,
},
options_page: "settings.html",
options_page: "public/settings.html",
content_scripts: [
{
js: ["src/content-script/index.tsx"],
Expand All @@ -47,7 +47,7 @@ export default defineManifest(async (env) => ({
permissions: ["activeTab", "storage", "tabs", "sidePanel"],
web_accessible_resources: [
{
resources: ["settings.html"],
resources: ["public/settings.html"],
matches: ["http://*/*", "https://*/*"],
},
],
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/background/sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ chrome.tabs.onUpdated.addListener(async function (tabId, changeInfo, tab) {
await chrome.sidePanel.setOptions({
tabId: tab.id,
enabled: true,
path: "sidepanel.html",
path: "public/sidepanel.html",
});
}
// Re-init tab state when url changes or page is refreshed
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig(async ({ mode }) => {
target: ["esnext"],
rollupOptions: {
input: {
sidepanel: "sidepanel.html",
sidepanel: "public/sidepanel.html",
},
},
},
Expand Down

0 comments on commit 500defb

Please sign in to comment.