diff options
author | Noah Loomans <noahloomans@gmail.com> | 2016-11-10 16:25:44 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2016-11-10 16:25:44 +0100 |
commit | 462b2c88e85d07b212eece2a30ec69da1d6dce00 (patch) | |
tree | f6ff3dedc101b264da240bdc949fb276f8c1bb21 /views | |
parent | 026ec47c693d74307ba780b8e998f0196dd9f195 (diff) |
added favorite analytics
Diffstat (limited to 'views')
-rw-r--r-- | views/index.jade | 11 | ||||
-rw-r--r-- | views/layout.jade | 1 |
2 files changed, 2 insertions, 10 deletions
diff --git a/views/index.jade b/views/index.jade index 31e9186..28d435b 100644 --- a/views/index.jade +++ b/views/index.jade @@ -50,14 +50,5 @@ block content iframe(src='/hello', scrolling='no')#schedule +block scripts script(src='/javascripts/bundle.js') - script. - if ('serviceWorker' in navigator) { - navigator.serviceWorker.register('/sw.js').then(function(registration) { - // Registration was successful - console.log('ServiceWorker registration successful with scope: ', registration.scope) - }).catch(function(err) { - // registration failed :( - console.log('ServiceWorker registration failed: ', err) - }) - } diff --git a/views/layout.jade b/views/layout.jade index 89c6e94..c2dd534 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -18,3 +18,4 @@ html ga('create', 'UA-83684754-1', 'auto'); ga('send', 'pageview'); + block scripts |