Skip to content

Commit

Permalink
! PUBLIC_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
wmonk committed Aug 7, 2017
1 parent 4dad65c commit 3afca81
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 3afca81

Please sign in to comment.