Improved offline mode

This commit is contained in:
2017-07-15 02:01:14 +02:00
parent 7cd8a8153e
commit c4bc17ae7f
2 changed files with 5 additions and 0 deletions

View File

@ -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() {