1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-10-11 11:34:24 +02:00

first draft to work on mobile

This commit is contained in:
Kushagra Gour
2018-04-14 15:06:37 +05:30
parent 784c09e85e
commit b2a2c17474
4 changed files with 82 additions and 29 deletions

View File

@@ -19,7 +19,9 @@
if (
'serviceWorker' in navigator &&
document.cookie.indexOf('wmdebug') === -1 &&
location.href.indexOf('chrome-extension://') === -1
location.href.indexOf('chrome-extension://') === -1 &&
location.href.indexOf('localhost') === -1 &&
location.href.indexOf('192.168') === -1
) {
// Delay registration until after the page has loaded, to ensure that our
// precaching requests don't degrade the first visit experience.