From 969c5a234f4e0c071e81da0f70b35feca13b63de Mon Sep 17 00:00:00 2001
From: knownotunknown <78577376+knownotunknown@users.noreply.github.com>
Date: Mon, 11 Mar 2024 00:00:38 -0500
Subject: [PATCH] Revert "fix: options page (#131)"
This reverts commit dc100b5d3ac1db5f1dc011ea2536c286f56fa55b.
---
src/pages/options/index.html | 2 +-
src/views/components/PopupMain.tsx | 2 +-
vite.config.ts | 5 -----
3 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/pages/options/index.html b/src/pages/options/index.html
index 2e290500..b4b032c8 100644
--- a/src/pages/options/index.html
+++ b/src/pages/options/index.html
@@ -4,7 +4,7 @@
-
UTRP Options
+ Popup
diff --git a/src/views/components/PopupMain.tsx b/src/views/components/PopupMain.tsx
index d6b2d88b..f22b2082 100644
--- a/src/views/components/PopupMain.tsx
+++ b/src/views/components/PopupMain.tsx
@@ -58,7 +58,7 @@ export default function PopupMain(): JSX.Element {
));
const handleOpenOptions = async () => {
- const url = chrome.runtime.getURL('/options.html');
+ const url = chrome.runtime.getURL('/src/pages/options/index.html');
await openTabFromContentScript(url);
};
diff --git a/vite.config.ts b/vite.config.ts
index c5b1e402..3a66b938 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -155,10 +155,6 @@ export default defineConfig({
target: 'http://localhost:5173',
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: {
@@ -166,7 +162,6 @@ export default defineConfig({
input: {
debug: 'src/pages/debug/index.html',
calendar: 'src/pages/calendar/index.html',
- options: 'src/pages/options/index.html',
},
// output: {
// entryFileNames: `[name].js`, // otherwise it will add the hash