tenfourfox/dom/push/test/frame.html
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

27 lines
472 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<script>
function waitOnPushMessage(pushSubscription)
{
var p = new Promise(function(res, rej) {
navigator.serviceWorker.onmessage = function(e) {
if (e.data.type == "finished") {
(e.data.okay == "yes" ? res : rej)(e.data);
}
};
});
return p;
}
</script>
</head>
<body>
</body>
</html>