overlay for the hotkey

This commit is contained in:
cpu
2025-05-09 13:11:49 +02:00
parent 599d6aad3c
commit 216f0043e5
5 changed files with 273 additions and 203 deletions

View File

@@ -187,8 +187,7 @@ npm run dev
Open it in your browser:
[http://localhost:8080/](http://localhost:8080/)
When done, do not forget to update the cache version in the `service-worker.js`
When done, do not forget to update the `CACHE_VERSION` in the `service-worker.js`. It is the indicator for the PWA that the new version is available.
```bash
ver=$(grep -oP "CACHE_VERSION = 'nexus-timer-cache-v\K[0-9]+" public/service-worker.js)
sed -i "s/nexus-timer-cache-v$ver/nexus-timer-cache-v$((ver+1))/" public/service-worker.js
@@ -212,4 +211,4 @@ View real-time logs
```bash
journalctl -fu virt-nexus-timer.service
```
The previously installed PWA should now offer an upgrade
The previously installed PWA should update automatically or offer an upgrade