extend the default page
This commit is contained in:
parent
b1cceec7fc
commit
d71e9effd0
3 changed files with 123 additions and 114 deletions
|
@ -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();
|
Loading…
Add table
Add a link
Reference in a new issue