我正在为大学项目创建渐进式Web应用程序,但是当我检查控制台时出现此错误:
未捕获(承诺)TypeError:请求失败 - serviceworker.js:1
我不明白这个错误来自哪里.
HTML和CSS按预期显示,但是当我从Chrome开发工具进行PWA审核时,它显示了这些失败.他们是'没有服务工作者','离线时没有200'和'用户没有提示安装网络应用'.
任何帮助表示赞赏!
提前致谢!
*{
padding: 0;
margin: 0;
font-family: "Roboto", sans-serif;
color: #4E5863;
}
.indexLogo{
height: 180px;
text-align: center;
padding: 36px 0;
border-bottom: 1px solid #E5E9F2;
}
.intuPotteriesLogo, .manchesterAirportLogo{
width: 252px;
height: auto;
}
.indexTitle{
text-align: center;
padding: 36px 0;
font-weight: 500;
border-bottom: 1px solid #E5E9F2;
font-size: 24px;
}
header{
width: 100%;
text-align: center;
}
#headerStokeCityOfCulture{
width: 100%;
}
#container{
width: 100%;
text-align: center;
}
.hotLinks{
border: 2px solid #ABB5C3;
width: 22%;
margin: 10px …Run Code Online (Sandbox Code Playgroud)