mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-08-01 12:29:07 +00:00
24 lines
494 B
HTML
24 lines
494 B
HTML
<!DOCTYPE html>
|
|
<script>
|
|
function done(exists) {
|
|
parent.postMessage(exists, '*');
|
|
}
|
|
|
|
function fail() {
|
|
parent.postMessage("FAIL", '*');
|
|
}
|
|
|
|
navigator.serviceWorker.getRegistration(".").then(function(reg) {
|
|
if (reg) {
|
|
reg.unregister().then(done.bind(undefined, true), fail);
|
|
} else {
|
|
dump("getRegistration() returned undefined registration\n");
|
|
done(false);
|
|
}
|
|
}, function(e) {
|
|
dump("getRegistration() failed\n");
|
|
fail();
|
|
});
|
|
</script>
|
|
|