From ef2d5d31787ddd8b84434c7f8304880521e65fa5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 7 Oct 2022 23:04:55 +0545 Subject: [PATCH] options: switch to integrated Chrome This has better UI than opening a dedicated tab. --- advanced.js | 2 +- manifest.json | 5 ++++- options.html | 12 +----------- popup.js | 2 +- 4 files changed, 7 insertions(+), 14 deletions(-) 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() { -- 2.39.5