修复issue #1247: 使用反向代理有子路径时,serviceWorker的scope错误
This commit is contained in:
parent
705c979557
commit
bd0e7a52ad
|
@ -244,7 +244,7 @@ new Promise((resolve) => {
|
||||||
"serviceWorker" in navigator
|
"serviceWorker" in navigator
|
||||||
) {
|
) {
|
||||||
let scope =
|
let scope =
|
||||||
window.location.protocol + "//" + window.location.host + "/";
|
window.location.protocol + "//" + window.location.host + window.location.pathname;
|
||||||
navigator.serviceWorker
|
navigator.serviceWorker
|
||||||
.getRegistrations()
|
.getRegistrations()
|
||||||
.then(async (registrations) => {
|
.then(async (registrations) => {
|
||||||
|
|
Loading…
Reference in New Issue