From 291c8a24e8ef0c6b872f5d1abe9f61d98719ac66 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Tue, 19 Mar 2024 09:43:56 +0800 Subject: [PATCH] =?UTF-8?q?create=20and=20test=20initial=20extension=20pop?= =?UTF-8?q?-up=20interface=20It=20is=20not=20referring=20to=20what's=20inj?= =?UTF-8?q?ected,=20but=20the=20way=20this'll=20happen=20will=20be=20a=20b?= =?UTF-8?q?it=20relevant=20to=20it=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gui/popup.htm | 3 ++- gui/scripts/popup.js | 14 +++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gui/popup.htm b/gui/popup.htm index 09e22a8..f31b5c2 100644 --- a/gui/popup.htm +++ b/gui/popup.htm @@ -1,3 +1,4 @@ + - + diff --git a/gui/scripts/popup.js b/gui/scripts/popup.js index d12f86b..587606e 100644 --- a/gui/scripts/popup.js +++ b/gui/scripts/popup.js @@ -1,12 +1,16 @@ +/* Popup.js + Build the interface for popup +*/ + +// Import modules. +import compat from "./compat.js"; +import texts from "./read.JS"; // Call the main function. function main() { - + } -/* Run detection */ -import {restrict} from "./compat.js"; - -if (!restrict()) { +if (compat.restrict()) { main(); }