_includes/head/index.html in word-games-theme-1.8.1 vs _includes/head/index.html in word-games-theme-1.8.2

- old
+ new

@@ -83,6 +83,16 @@ {%- if page.tool -%} {%- include Rating/structureddata.html -%} {%- endif -%} {%- include google-analytics.html -%} + + <script> + if ('serviceWorker' in navigator) { + window.addEventListener('load', () => { + navigator.serviceWorker.register('/serviceworker.js') + .then((reg) => console.log('Success: ', reg.scope)) + .catch((err) => console.log('Failure: ', err)); + }) + } + </script> </head> \ No newline at end of file