Skip to content

Commit

Permalink
Updated service worker filename
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulkrishh committed Oct 16, 2016
1 parent 809cc1a commit bb05f10
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 36,15 @@
To create a production bundle, use `npm run build`.
-->
<script type="text/javascript">
//If serviceWorker supports, then register it.
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register('./serviceWorker.js', { scope: "./" }) //setting scope of sw
.then(function (registration) {
console.info('Service worker is registered!');
})
.catch(function (error) {
console.error('Service worker failed ', error);
});
}
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register('./service-worker.js', { scope: "./" })
.then(function (registration) {
console.info('Service worker is registered!');
})
.catch(function (error) {
console.error('Service worker failed ', error);
});
}
</script>
</body>
</html>

0 comments on commit bb05f10

Please sign in to comment.