This commit is contained in:
qikaile 2022-08-09 12:06:29 +08:00
parent 005b3606a7
commit 35f5be5eb2
2 changed files with 8 additions and 0 deletions

View File

@ -24,5 +24,13 @@
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<!-- sw.js -->
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", function () {
navigator.serviceWorker.register("./sw.js");
});
}
</script>
</body> </body>
</html> </html>

View File