summaryrefslogtreecommitdiffstats
path: root/redfox.js
diff options
context:
space:
mode:
Diffstat (limited to 'redfox.js')
-rw-r--r--redfox.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/redfox.js b/redfox.js
new file mode 100644
index 0000000..fea1579
--- /dev/null
+++ b/redfox.js
@@ -0,0 +1,15 @@
+// *****************************************************
+// ************** nastavitev spremenljivk *************
+// *****************************************************
+var author = "Sebastjan Dobnik";
+
+// Register the service worker
+if ('serviceWorker' in navigator) {
+ navigator.serviceWorker.register('/service-worker.js')
+ .then(function(registration) {
+ console.log('sw reg succ, scope: ', registration.scope);
+ })
+ .catch(function(err) {
+ console.log('ServiceWorker registration failed: ', err);
+ });
+}