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