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",
|
||||
|
||||
initialize(container) {
|
||||
const isSecured =
|
||||
document.location.protocol === "https:" ||
|
||||
location.hostname === "localhost";
|
||||
const isSecured = document.location.protocol === "https:";
|
||||
|
||||
if (isSecured && "serviceWorker" in navigator) {
|
||||
let { serviceWorkerURL } = container.lookup("session:main");
|
||||
|
|
Loading…
Reference in New Issue