fix: rollbar template needs PUBLIC_URL defined (#1127)
This commit is contained in:
parent
1b5a5a2963
commit
352407c71a
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user