mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 08:47:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<script>
|
||||
window.onmessage = function (event) {
|
||||
if (event.data !== "register") {
|
||||
return;
|
||||
}
|
||||
var promise = navigator.serviceWorker.register("worker.js");
|
||||
window.onmessage = function (event) {
|
||||
if (event.data !== "register") {
|
||||
return;
|
||||
}
|
||||
promise = promise.then(function (registration) {
|
||||
return navigator.serviceWorker.register("worker2.js");
|
||||
});
|
||||
window.onmessage = function (event) {
|
||||
if (event.data !== "unregister") {
|
||||
return;
|
||||
}
|
||||
promise.then(function (registration) {
|
||||
registration.unregister();
|
||||
});
|
||||
window.onmessage = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
This is a test page.
|
||||
</body>
|
||||
<html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue