fix(service worker): Fix typo

This commit is contained in:
Tixie 2019-03-15 18:25:24 +01:00
parent 01e04161ab
commit fcc44687d2

View file

@ -10,7 +10,7 @@ const isLocalhost = Boolean(
)
export default function register () {
if (process.env.NODE_ENV === ' production' && 'serviceWorker' in navigator) {
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
// The URL constructor is available in all browsers that support SW.
const publicUrl = new URL('/', window.location)
if (publicUrl.origin !== window.location.origin) {