File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ main = hakyll $ do
27
27
route idRoute
28
28
compile copyFileCompiler
29
29
30
+ match " sw.js" $ do
31
+ route idRoute
32
+ compile copyFileCompiler
33
+
30
34
-- sponsors --------------------------------------------------------------------------------------------
31
35
match " donations/sponsors/*.markdown" $ compile pandocCompiler
32
36
Original file line number Diff line number Diff line change 22
22
< link rel ="stylesheet " href ="/assets/css/main.css ">
23
23
< link rel ="alternate " type ="application/rss+xml " href ="https://feeds.buzzsprout.com/1817535.rss ">
24
24
< script src ="/assets/js/main.js " defer > </ script >
25
+ <!-- from https://stackoverflow.com/questions/33986976/how-can-i-remove-a-buggy-service-worker-or-implement-a-kill-switch/62154131#62154131
26
+ attempt to fix: https://github.com/haskellfoundation/haskellfoundation.github.io/issues/70
27
+ -->
28
+ < script >
29
+ if ( navigator && navigator . serviceWorker && navigator . serviceWorker . getRegistration ) {
30
+ navigator . serviceWorker . getRegistration ( '/' ) . then ( function ( registration ) {
31
+ if ( registration ) {
32
+ registration . update ( ) ;
33
+ registration . unregister ( ) ;
34
+ }
35
+ } ) ;
36
+ }
37
+ </ script >
25
38
</ head >
26
39
< body class ="relative ">
27
40
You can’t perform that action at this time.
0 commit comments