search for: serviceworkers

Displaying 1 result from an estimated 1 matches for "serviceworkers".

2016 Nov 14
0
[offtopic] JavaScript and ServiceWorkers in FireFox
...mine breaks, so its often weeks or months before I actually get updates that exist) Anyway I have never allowed a website to send 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(...