add other extras to windowman

This commit is contained in:
buzz-lightsnack-2007 2024-05-15 17:11:40 +08:00
parent 5c3a568e2c
commit d7bcbc0477

View file

@ -6,6 +6,7 @@ import Tabs from "/scripts/GUI/tabs.js";
import {global, observe} from "/scripts/secretariat.js";
import {URLs} from "/scripts/utils/URLs.js";
import wait from "/scripts/utils/wait.js";
import UI from "/scripts/GUI/builder/windowman.search.js";
export default class windowman {
elements = {};
@ -484,15 +485,19 @@ export default class windowman {
}
};
/* Enable the searching interface. */
async function search() {
const search_GUI_manager = (await import(chrome.runtime.getURL(`scripts/GUI/builder/windowman.search.js`))).default;
return (search_GUI_manager.Search());
};
/*
Instantiate the extras.
*/
const extras = () => {
// Add the search interface.
(Object.keys(UI)).forEach((FEATURE) => {
this[FEATURE] = new UI[FEATURE]();
})
}
fill();
write();
this[`search`] = search();
extras();
// Update the input elements.
observe((what) => {