From: Mike Frysinger Date: Fri, 7 Oct 2022 17:19:55 +0000 (+0545) Subject: options: switch to integrated Chrome X-Git-Tag: v0.3~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ef2d5d31787ddd8b84434c7f8304880521e65fa5;p=chrome-ext%2Ftabs-backup.git options: switch to integrated Chrome This has better UI than opening a dedicated tab. --- diff --git a/advanced.js b/advanced.js index 63109b6..5916ed2 100644 --- a/advanced.js +++ b/advanced.js @@ -43,7 +43,7 @@ document.addEventListener('DOMContentLoaded', function () { }); function menu_ShowOptions () { - chrome.tabs.create({url:chrome.extension.getURL("options.html")}); + chrome.runtime.openOptionsPage(); } function menu_ShowAdvancedView() { diff --git a/manifest.json b/manifest.json index d1eb95e..ff9a702 100644 --- a/manifest.json +++ b/manifest.json @@ -10,7 +10,10 @@ "persistent": false, "scripts": ["background.js"] }, - "options_page": "options.html", + "options_ui": { + "page": "options.html", + "chrome_style": true + }, "browser_action": { "default_icon": "icon_48.png", "default_popup": "popup.html" diff --git a/options.html b/options.html index 70d614c..4a14022 100644 --- a/options.html +++ b/options.html @@ -160,16 +160,6 @@
- Tabs Backup & Restore - Options - - - -
- With Tabs Backup & Restore you will never lose your work again!

- Backup an entire Chrome session (all opened windows and tabs) and restore it when needed.
- Backups are created automatically, but can also be created manually whenever you want. -
-
@@ -217,7 +207,7 @@ -
Theme + diff --git a/popup.js b/popup.js index c596e7a..313045e 100644 --- a/popup.js +++ b/popup.js @@ -34,7 +34,7 @@ document.addEventListener('DOMContentLoaded', function () { }); function menu_ShowOptions () { - chrome.tabs.create({url:chrome.extension.getURL("options.html")}); + chrome.runtime.openOptionsPage(); } function menu_ShowAdvancedView() {