Revert "fix: options page (#131)"

This reverts commit dc100b5d3a.
This commit is contained in:
knownotunknown
2024-03-11 00:00:38 -05:00
parent 00502657f4
commit 969c5a234f
3 changed files with 2 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" /> <meta name="theme-color" content="#000000" />
<title>UTRP Options</title> <title>Popup</title>
</head> </head>
<body> <body>

View File

@@ -58,7 +58,7 @@ export default function PopupMain(): JSX.Element {
)); ));
const handleOpenOptions = async () => { const handleOpenOptions = async () => {
const url = chrome.runtime.getURL('/options.html'); const url = chrome.runtime.getURL('/src/pages/options/index.html');
await openTabFromContentScript(url); await openTabFromContentScript(url);
}; };

View File

@@ -155,10 +155,6 @@ export default defineConfig({
target: 'http://localhost:5173', target: 'http://localhost:5173',
rewrite: path => path.replace('calendar', 'src/pages/calendar/index'), rewrite: path => path.replace('calendar', 'src/pages/calendar/index'),
}, },
'/options.html': {
target: 'http://localhost:5173',
rewrite: path => path.replace('options', 'src/pages/options/index'),
},
}, },
}, },
build: { build: {
@@ -166,7 +162,6 @@ export default defineConfig({
input: { input: {
debug: 'src/pages/debug/index.html', debug: 'src/pages/debug/index.html',
calendar: 'src/pages/calendar/index.html', calendar: 'src/pages/calendar/index.html',
options: 'src/pages/options/index.html',
}, },
// output: { // output: {
// entryFileNames: `[name].js`, // otherwise it will add the hash // entryFileNames: `[name].js`, // otherwise it will add the hash