Skip to content

Commit

Permalink
Default to empty string for PUBLIC_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
wmonk committed Aug 7, 2017
1 parent f2a5c5f commit 4dad65c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -23,7 +23,7 @@ export default function register() {
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
// The URL constructor is available in all browsers that support SW.
const publicUrl = new URL(
process.env.PUBLIC_URL,
process.env.PUBLIC_URL || '',
window.location.toString()
);
if (publicUrl.origin !== window.location.origin) {
Expand Down

0 comments on commit 4dad65c

Please sign in to comment.