Player-Sync im Web: nur angenommene eigene Berichte zählen als letzter Stand, sw v60
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
21c314dbd7
commit
262dd0d207
2 changed files with 6 additions and 3 deletions
|
|
@ -1090,9 +1090,12 @@
|
||||||
sync.sending--;
|
sync.sending--;
|
||||||
if (st) {
|
if (st) {
|
||||||
if (done && sync.doneCmd === done) sync.doneCmd = null;
|
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;
|
sync.ownAt = st.server_time;
|
||||||
store('sync_at', sync.ownAt);
|
store('sync_at', sync.ownAt);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
heard(st);
|
heard(st);
|
||||||
return st;
|
return st;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* diora service worker — caches the app shell for offline use.
|
* diora service worker — caches the app shell for offline use.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const CACHE = 'diora-v59';
|
const CACHE = 'diora-v60';
|
||||||
const SHELL = [
|
const SHELL = [
|
||||||
'/static/css/app.css',
|
'/static/css/app.css',
|
||||||
'/static/js/app.js',
|
'/static/js/app.js',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue