vue-hackernews-2.0 icon indicating copy to clipboard operation
vue-hackernews-2.0 copied to clipboard

enable service worker on localhost

Open Everettss opened this issue 7 years ago • 1 comments

We want to debug service worker on localhost. More details in this issue #268

Everettss avatar Dec 09 '17 12:12 Everettss

What about IPv6?

const isLocalhost = Boolean(
  location.hostname === 'localhost' ||
  location.hostname === '[::1]' ||
  location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)
)

edited: extra space

daliborgogic avatar Dec 16 '17 20:12 daliborgogic