Displaying 1 result from an estimated 1 matches for "registerworker".
Did you mean:
register_order
2016 Nov 14
0
[offtopic] JavaScript and ServiceWorkers in FireFox
...me notifications but I now
have use to make notifications available to users on one of my sites if
they opt in.
Looking into how they are done, it seems to involve serviceWorkers which
I have heard about but never used myself.
Going through a simple tutorial I created this function:
function registerWorker() {
"use strict";
if ('serviceWorker' in navigator) {
window.alert('Hello World');
} else {
window.alert('no joy');
}
}
obviously not finished as it doesn't register anything, but it kept
telling me "no joy" in...