fix: rollbar template needs PUBLIC_URL defined (#1127)
This commit is contained in:
1 parent
1b5a5a2963
commit
352407c71a
2 files changed
+35
-35
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user