gecko-dev/dom/serviceworkers/test/updatefoundevent.html

14 строки
319 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Bug 1131327 - Test ServiceWorkerRegistration.onupdatefound on ServiceWorker</title>
</head>
<body>
<script>
navigator.serviceWorker.onmessage = function(e) {
dump("NSM iframe got message " + e.data + "\n");
window.parent.postMessage(e.data, "*");
};
</script>
</body>