This has better UI than opening a dedicated tab.
});
function menu_ShowOptions () {
- chrome.tabs.create({url:chrome.extension.getURL("options.html")});
+ chrome.runtime.openOptionsPage();
}
function menu_ShowAdvancedView() {
"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"
<body>
<div id="content">
- <img src="icon.png" style="border: 0; padding: 10px;" /><b>Tabs Backup & Restore - Options</b>
-
-
-
- <div id="smallDescription">
- With Tabs Backup & Restore you will never lose your work again!<br /><br />
- Backup an entire Chrome session (all opened windows and tabs) and restore it when needed.<br />
- Backups are created automatically, but can also be created manually whenever you want.
- </div>
-
<div id="prefs">
<table>
<tr class="prefsRow">
<td width="200">Theme</td>
- <td>
+ <td style="white-space: nowrap">
<input type="text" id="prefsTheme" hidden>
<button id="theme-light">Light</button>
<button id="theme-system">System</button>
});
function menu_ShowOptions () {
- chrome.tabs.create({url:chrome.extension.getURL("options.html")});
+ chrome.runtime.openOptionsPage();
}
function menu_ShowAdvancedView() {