replace options url

This commit is contained in:
Gabe Yuan
2023-08-07 11:53:44 +08:00
parent 4b7fad453e
commit afd749208f
14 changed files with 19 additions and 17 deletions

View File

@@ -51,7 +51,8 @@ class ActionElement extends HTMLElement {
// 设置页面
if (
document.location.href.includes("http://localhost:3000/options.html") ||
document.location.href.includes(process.env.REACT_APP_OPTIONSPAGE)
document.location.href.includes(process.env.REACT_APP_OPTIONSPAGE) ||
document.location.href.includes(process.env.REACT_APP_OPTIONSPAGE2)
) {
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(