Skip to content

Commit d8b352d

Browse files
committed
feat: Implement service worker cache size limiting and migrate PWA install library to module import.
1 parent 9afa6c0 commit d8b352d

5 files changed

Lines changed: 137 additions & 9 deletions

File tree

‎index.html‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
<div id="app" class="w-full h-full">
1919
<div id="iframe"></div>
2020
</div>
21-
<script type="module"
22-
src="https://cdn.jsdelivr.net/npm/@khmyznikov/pwa-install@0.4.3/dist/pwa-install.bundle.js"></script>
2321
<pwa-install id="pwa-install" manifestpath="./manifest.webmanifest" iconpath="./img/pwa-512.png"></pwa-install>
2422
</body>
2523
<script type="module" src="./index.ts"></script>

‎index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
showMenuGuide,
1010
} from './lib/ui';
1111
import 'ranui/button';
12+
import '@khmyznikov/pwa-install';
1213
import './styles/base.css';
1314

1415
declare global {

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"vite": "^7.3.1"
5555
},
5656
"dependencies": {
57+
"@khmyznikov/pwa-install": "^0.6.3",
5758
"ranui": "0.1.10-alpha-27",
5859
"ranuts": "0.1.0-alpha-23"
5960
}

‎pnpm-lock.yaml‎

Lines changed: 116 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)