Merge pull request #159 from xiangt920/patch-1

修复使用带subpath的反向代理时api可能无法访问的问题
This commit is contained in:
jxxghp
2024-06-17 09:06:31 +08:00
committed by GitHub
+1 -1
View File
@@ -10,7 +10,7 @@ cleanupOutdatedCaches()
precacheAndRoute(self.__WB_MANIFEST) precacheAndRoute(self.__WB_MANIFEST)
// to allow work offline // to allow work offline
registerRoute(new NavigationRoute(createHandlerBoundToURL('index.html'), { denylist: [/^\/api/] })) registerRoute(new NavigationRoute(createHandlerBoundToURL('index.html'), { denylist: [/^(\/[\w-]+)*\/api/] }))
// 通知选项 // 通知选项
const options = { const options = {