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