Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostname issue #1

Open
yuvraj88 opened this issue Jun 20, 2020 · 1 comment
Open

hostname issue #1

yuvraj88 opened this issue Jun 20, 2020 · 1 comment

Comments

@yuvraj88
Copy link

var isLocalhost=Boolean(window.location.hostname==="localhost"||// [::1] is the IPv6 localhost address.
^

TypeError: Cannot read property 'hostname' of undefined

@felthy
Copy link
Owner

felthy commented Oct 9, 2020

That code is in src/serviceWorker.js, which is unchanged from the original. It’s only executed in the browser so I don’t know how window.location could be undefined (especially if window is not undefined).

Can you provide more info about how you came across this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants