mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-18 18:33:07 +09:00
28 lines
447 B
HTML
28 lines
447 B
HTML
|
|
<!DOCTYPE html>
|
||
|
|
|
||
|
|
<html>
|
||
|
|
<body>
|
||
|
|
<script type="text/javascript">
|
||
|
|
var nav, win;
|
||
|
|
|
||
|
|
function openWindow() {
|
||
|
|
return new Promise(resolve => {
|
||
|
|
win = window.open(window.location);
|
||
|
|
|
||
|
|
win.addEventListener("load", function listener() {
|
||
|
|
nav = win.navigator;
|
||
|
|
resolve();
|
||
|
|
}, false);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
function navigate() {
|
||
|
|
win.location = "http://example.com/";
|
||
|
|
}
|
||
|
|
|
||
|
|
function check() {
|
||
|
|
return "mozAddonManager" in nav;
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|