我的start_url有問題而且我不知道為什么這段代碼是錯誤的,我在所有論壇和互聯網上搜索,但我找不到答案,燈塔說:
不注冊控制頁面和 start_url 的服務作業者服務作業者是使您的應用程式能夠使用許多漸進式 Web 應用程式功能的技術,例如離線、添加到主螢屏和推送通知。學到更多。
如果我添加manifest.json添加start_url:仍然不起作用,我發現只有一個答案是使用scope:但仍然不起作用。

{
"name": "Heexy",
"short_name": "Heexy",
"description": "Heexy is the private and fast search engine without ads!.",
"lang": "en-US",
"start_url":"/?start=url",
"scope": ".",
"display": "standalone",
"theme_color": "#03adfc",
"background_color": "white",
"icons": [
{
"src": "https://cdn.heexy.org/images/logo.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
]
}
uj5u.com熱心網友回復:
您必須添加 service-worker.js 腳本
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/492632.html
下一篇:Chrome看不到大部分本地檔案
