refine raw source code opening prevention

This commit is contained in:
buzz-lightsnack-2007 2024-03-17 18:37:39 +08:00
parent a3c7152497
commit 1e74f8b1ea
3 changed files with 41 additions and 2 deletions

12
gui/scripts/popup.js Normal file
View file

@ -0,0 +1,12 @@
// Call the main function.
function main() {
}
/* Run detection */
import {restrict} from "./compat.js";
if (!restrict()) {
main();
}