优化提示

This commit is contained in:
IndieKKY
2024-10-06 14:07:57 +08:00
parent 86746dc2a3
commit 6e9132d657
3 changed files with 85 additions and 48 deletions

7
src/utils/chromeUtils.ts Normal file
View File

@@ -0,0 +1,7 @@
export const openOptionsPage = () => {
if (chrome.runtime.openOptionsPage) {
chrome.runtime.openOptionsPage();
} else {
window.open(chrome.runtime.getURL('options.html'));
}
};