From 826df5e7171d99a85cdcbd3c638b98d70fa4bd39 Mon Sep 17 00:00:00 2001 From: dogatech Date: Mon, 19 Sep 2016 01:18:32 +0000 Subject: [PATCH] Fixes problem with service worker and (firebase) oauth. Error: Uncaught TypeError: Cannot read property 'instanceCount' of undefined See: https://github.com/Polymer/polymer-cli/issues/290 --- sw-precache-config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sw-precache-config.js b/sw-precache-config.js index cd20c76..8e5aea0 100644 --- a/sw-precache-config.js +++ b/sw-precache-config.js @@ -13,5 +13,6 @@ module.exports = { '/manifest.json', '/bower_components/webcomponentsjs/webcomponents-lite.min.js' ], - navigateFallback: '/index.html' + navigateFallback: '/index.html', + navigateFallbackWhitelist: [ /^\/[^\_]+\// ] };