Player-Sync im Web: nur angenommene eigene Berichte zählen als letzter Stand, sw v60
All checks were successful
Build and push Docker image / build (push) Successful in 13s
Test / test (push) Successful in 5m53s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mrwnslz 2026-10-02 15:30:06 +02:00
parent 21c314dbd7
commit 262dd0d207
2 changed files with 6 additions and 3 deletions

View file

@ -1090,9 +1090,12 @@
sync.sending--;
if (st) {
if (done && sync.doneCmd === done) sync.doneCmd = null;
// Only a report the server took is our last change (an ignored one isn't).
if (st.device_id === DEVICE_ID) {
sync.ownAt = st.server_time;
store('sync_at', sync.ownAt);
}
}
heard(st);
return st;
});

View file

@ -2,7 +2,7 @@
* diora service worker — caches the app shell for offline use.
*/
const CACHE = 'diora-v59';
const CACHE = 'diora-v60';
const SHELL = [
'/static/css/app.css',
'/static/js/app.js',