Skip to content

Commit

Permalink
feat: add pwa install force param
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Aug 11, 2024
1 parent 2feea9b commit 323a31a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Empty file removed public/sw.js
Empty file.
2 changes: 1 addition & 1 deletion src/components/PWAInstaller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function usePWAInstaller() {
return {
install: (force?: boolean) => {
const installer = getInstallerElement();
installer?.install();
installer?.install(force);
},
};
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"incremental": true,
"paths": {
"@/*": ["./src/*"]
},
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 323a31a

Please sign in to comment.