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
|
@ -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