extend the default page

This commit is contained in:
buzz-lightsnack-2007 2024-04-16 18:30:47 +08:00
parent b1cceec7fc
commit d71e9effd0
3 changed files with 123 additions and 114 deletions

View file

@ -1,22 +1,21 @@
/* Popup.js
Build the interface for popup
Build the interface for popup
*/
// Import modules.
import {read, forget} from "/scripts/secretariat.js";
import windowman from "/scripts/GUI/windowman.js";
let secretariat = await import(chrome.runtime.getURL("scripts/secretariat.js"));
import Page from "/scripts/pages/page.js";
function start() {
windowman.prepare();
}
/* Populate the strings on the page. */
function say(element) {
// document.title
class Page_Popup extends Page {
constructor() {
super();
(this.events) ? this.events() : false;
}
events() {
}
}
function main() {
let tab = start();
say(tab);
}
main();
new Page_Popup();