Improved offline mode
This commit is contained in:
parent
7cd8a8153e
commit
c4bc17ae7f
@ -154,6 +154,10 @@ export class AnimeNotifier {
|
||||
|
||||
onIdle() {
|
||||
this.pushAnalytics()
|
||||
|
||||
if(navigator.onLine === false) {
|
||||
this.statusMessage.showError("You are viewing an offline version of the site now.")
|
||||
}
|
||||
}
|
||||
|
||||
registerServiceWorker() {
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
.status-message-action
|
||||
color white !important
|
||||
pointer-events all !important
|
||||
|
||||
.error-message
|
||||
color white
|
||||
|
Loading…
Reference in New Issue
Block a user