This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
if ('serviceWorker' in navigator) { | |
var scriptUrl = '/scripts/serviceworker.min.js'; | |
navigator.serviceWorker.register(scriptUrl, {scope: '/*'}).then(function(sw) { | |
// registration worked! | |
console.log('register.js: ServiceWorker registration successful', sw); | |
}).catch(function(e) { | |
// registration failed :( | |
console.log('register.js: ServiceWorker registration failed: '+scriptUrl, e); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.addEventListener("install",function(a){console.log("Install"),a.waitUntil(Promise.resolve())}),this.addEventListener("fetch",function(a){console.log(a.request)}); | |
//# sourceMappingURL=serviceworker.min.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var CACHE_NAME = 'gf-cache-v1.0.0'; | |
var ServiceWorker = this; | |
var cachableUrls = [ | |
/**GF:CACHE**/ | |
]; | |
/*globals importScripts*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
if ('serviceWorker' in navigator) { | |
var scriptUrl = '/serviceworker'; | |
navigator.serviceWorker.register(scriptUrl).then(function() { | |
// registration worked! | |
console.log('register.js: ServiceWorker registration successful'); | |
}).catch(function(e) { | |
// registration failed :( | |
console.log('register.js: ServiceWorker registration failed: ' + scriptUrl, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav> | |
<ul> | |
<li><a>The Workshop</a></li> | |
<li class="active"><a>2013 Schedule</a></li> | |
<li><a>About CSSWizardy</a></li> | |
<li><a>Contact</a></li> | |
</ul> | |
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Chrome Peeps: | |
https://twitter.com/Paul_Kinlan | |
https://twitter.com/jaffathecake | |
https://twitter.com/petele | |
https://twitter.com/sw12 | |
https://twitter.com/agektmr | |
https://twitter.com/gauntface | |
https://plus.google.com/+PaulKinlan/posts | |
https://plus.google.com/+jakearchibald/posts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.serviceWorker.ready.then(function(serviceWorkerRegistration) { | |
serviceWorkerRegistration.pushManager.getSubscription().then( | |
function(pushSubscription) { | |
if(pushSubscription) { | |
// The user is subscribed | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = '/scripts/main.min.c18e3e78.js'; | |
var opaqueResponsePromise = function(response) { | |
console.log('opaque repsonse', response); | |
// Cache opaque response | |
}; | |
var basicResponsePromise = function(response) { | |
console.log('basic repsonse'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
OlderNewer