我尝试为 Chrome 制作桌面 PWA。它几乎可以正常工作,但我有一个问题。
我的服务人员注册如下:
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('https://subdomain.domain.ext/app/sw.js')
}
我webmanifest只包含一个start_url(no scope) 为:https://subdomain.domain.ext/app/monitoring/dashboard
当我打开我的桌面 PWA 时,它运行良好,当我导航到这样的页面时
https://subdomain.domain.ext/app/monitoring/**settings**,它也运行良好。
但是当我导航到类似的页面时https://subdomain.domain.ext/app/**marketing**/dashboard,它可以工作,但我得到了一个如下的顶部横幅。
你知道发生了什么以及如何解决它吗?谢谢
