Skip to content

Commit 276763c

Browse files
committed
add explicit check for non production env
1 parent e2e8f91 commit 276763c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-scripts/template/src/registerServiceWorker.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ export default function register() {
6666
checkValidServiceWorker(swUrl);
6767
}
6868
});
69-
} else {
69+
}
70+
71+
if (process.env.NODE_ENV !== 'production') {
7072
showMessage('Development mode started.');
7173
}
7274
}

0 commit comments

Comments
 (0)