DEV: Do not install service workers in development (#12708)
This commit is contained in:
parent
32689573fa
commit
b5fba751a0
|
@ -4,9 +4,7 @@ export default {
|
||||||
name: "register-service-worker",
|
name: "register-service-worker",
|
||||||
|
|
||||||
initialize(container) {
|
initialize(container) {
|
||||||
const isSecured =
|
const isSecured = document.location.protocol === "https:";
|
||||||
document.location.protocol === "https:" ||
|
|
||||||
location.hostname === "localhost";
|
|
||||||
|
|
||||||
if (isSecured && "serviceWorker" in navigator) {
|
if (isSecured && "serviceWorker" in navigator) {
|
||||||
let { serviceWorkerURL } = container.lookup("session:main");
|
let { serviceWorkerURL } = container.lookup("session:main");
|
||||||
|
|
Loading…
Reference in New Issue