Fixed error where classes were applied multiple times

This commit is contained in:
Kasper Rynning-Tønnesen
2016-04-28 13:06:37 +02:00
parent f5906e388b
commit 19a528842b
5 changed files with 14 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
//importScripts('/static/dist/lib/cache-polyfill.js');
var version = 'v1.0.1';
var version = 'v1.0.2';
var CACHE_FILES = [
'https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=https://zoff.no/&choe=UTF-8&chld=L%7C1',
'https://fonts.googleapis.com/icon?family=Material+Icons',
@@ -171,7 +171,8 @@ self.addEventListener("fetch", function(event) {
event.request.url.indexOf("php/") == -1 &&
event.request.url.indexOf("/static/") == -1 &&
event.request.url.indexOf("https://zoff.no/") == -1 &&
event.request.url.indexOf("http://localhost/") == -1) {
event.request.url.indexOf("http://localhost/") == -1 &&
event.request.url.indexOf("cdn.socket.io") == -1) {
cache.put(event.request, cacheCopy);
}
})