mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-10-22 02:25:05 +00:00
26 lines
497 B
HTML
26 lines
497 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Test app for bug 1171917</title>
|
|
<script type="application/javascript;version=1.7">
|
|
|
|
function update() {
|
|
alert("UPDATE");
|
|
}
|
|
|
|
function onLoad() {
|
|
navigator.serviceWorker.getRegistration(".").then(function(swr) {
|
|
swr.onupdatefound = function() {
|
|
swr.onupdatefound = null;
|
|
parent.postMessage({status: "callback", data: "done"}, "*");
|
|
};
|
|
update();
|
|
});
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body onload="onLoad()">
|
|
</body>
|
|
</html>
|