Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
deploy: 72f7470
Browse files Browse the repository at this point in the history
  • Loading branch information
Manshawar committed Dec 17, 2024
1 parent 8403b32 commit fb88494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sw/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"display": "standalone",
"icons": [
{
"src": "/rspress-icon.png",
"src": "/Manshawar-blog/rspress-icon.png",
"type": "image/png",
"sizes": "512x512"
}
Expand Down
2 changes: 1 addition & 1 deletion sw/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if ("serviceWorker" in window.navigator) {
const registerServiceWorker = async () => {
if ("serviceWorker" in navigator) {
try {
const registration = await navigator.serviceWorker.register("/sw/index.js", {
const registration = await navigator.serviceWorker.register("/Manshawar-blog/sw/index.js", {
scope: "/sw/",
});
console.log(registration, "注册");
Expand Down

0 comments on commit fb88494

Please sign in to comment.