fix: rollbar template needs PUBLIC_URL defined (#1127)

This commit is contained in:
Danny Brown 2019-10-29 16:04:53 -04:00 committed by GitHub
parent 1b5a5a2963
commit 352407c71a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 35 deletions

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@ var isNotLocalDevelopment =
['localhost', '127'].indexOf(location.hostname) === -1;
if (supportsServiceWorker && isNotLocalDevelopment) {
const swFileLocation = window.PUBLIC_URL + 'sw.js';
const swFileLocation = (window.PUBLIC_URL || '/') + 'sw.js';
const wb = new Workbox(swFileLocation);
// Add an event listener to detect when the registered