Do not use seperate pop-ups anymore
Users can do it anyway.
This commit is contained in:
parent
eaaeba79b1
commit
ec730cfc5d
3 changed files with 2 additions and 27 deletions
|
@ -5,7 +5,7 @@
|
|||
"version": "0",
|
||||
|
||||
"minimum_chrome_version": "114",
|
||||
"permissions": [ "tabs", "activeTab", "storage", "unlimitedStorage", "sidePanel"],
|
||||
"permissions": [ "tabs", "activeTab", "storage", "unlimitedStorage", "sidePanel", "contextMenus"],
|
||||
|
||||
"action": {
|
||||
"default_icon": "media/icons/logo_no_tiny.png",
|
||||
|
@ -37,7 +37,7 @@
|
|||
"512": "media/icons/logo_tiny.png"
|
||||
},
|
||||
|
||||
"options_page": "pages/open/settings.htm",
|
||||
"options_page": "pages/settings.htm",
|
||||
|
||||
"default_locale": "en"
|
||||
}
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="/scripts/pages/open.js" type="module"></script>
|
||||
</head>
|
||||
</html>
|
|
@ -1,20 +0,0 @@
|
|||
// Open the settings in a pop-up window.
|
||||
|
||||
import windowman from "/scripts/GUI/windowman.JS";
|
||||
|
||||
function redirect() {
|
||||
let location = {};
|
||||
location[`original`] = window.location.href;
|
||||
location[`page`] = [...location[`original`].split(`/`)].pop();
|
||||
location[`target`] = chrome.runtime.getURL("pages/".concat(location[`page`]));
|
||||
|
||||
windowman.new(location[`target`]);
|
||||
|
||||
window.close();
|
||||
}
|
||||
|
||||
function main() {
|
||||
redirect();
|
||||
}
|
||||
|
||||
main();
|
Loading…
Add table
Add a link
Reference in a new issue