mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2024-11-09 23:31:52 +00:00
fix(service worker): Fix typo
This commit is contained in:
parent
01e04161ab
commit
fcc44687d2
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ const isLocalhost = Boolean(
|
||||||
)
|
)
|
||||||
|
|
||||||
export default function register () {
|
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.
|
// The URL constructor is available in all browsers that support SW.
|
||||||
const publicUrl = new URL('/', window.location)
|
const publicUrl = new URL('/', window.location)
|
||||||
if (publicUrl.origin !== window.location.origin) {
|
if (publicUrl.origin !== window.location.origin) {
|
||||||
|
|
Loading…
Reference in a new issue