Fix offline capability: Cache first -> fetch from network second. From now on, updates are only possible by increasing cacheVersion

This commit is contained in:
schlagmichdoch 2023-10-12 18:57:26 +02:00
parent 8eb6e5bfab
commit 2131307fc6
6 changed files with 86 additions and 58 deletions

View file

@ -2260,7 +2260,10 @@ class NetworkStatusUI {
}
_showOfflineMessage() {
Events.fire('notify-user', Localization.getTranslation("notifications.offline"));
Events.fire('notify-user', {
message: Localization.getTranslation("notifications.offline"),
persistent: true
});
}
_showOnlineMessage() {