fix regex expression for denyList

This commit is contained in:
xiangt920
2024-06-16 19:53:30 -05:00
committed by GitHub
parent 314ac65e23
commit 505d6ec010

View File

@@ -10,7 +10,7 @@ cleanupOutdatedCaches()
precacheAndRoute(self.__WB_MANIFEST)
// to allow work offline
registerRoute(new NavigationRoute(createHandlerBoundToURL('index.html'), { denylist: [/^\/api/] }))
registerRoute(new NavigationRoute(createHandlerBoundToURL('index.html'), { denylist: [/^(\/[\w-]+)*\/api/] }))
// 通知选项
const options = {