Browse Source

Небольшие поправки в app title

Book Pauk 6 years ago
parent
commit
e1bfefc188
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/components/App.vue

+ 2 - 2
client/components/App.vue

@@ -168,7 +168,7 @@ class App extends Vue {
         if (!title) {
         if (!title) {
             if (this.mode == 'omnireader') {
             if (this.mode == 'omnireader') {
                 document.title = `Omni Reader - всегда с вами`;
                 document.title = `Omni Reader - всегда с вами`;
-            } else if (this.config) {
+            } else if (this.config && this.mode !== null) {
                 document.title = `${this.config.name} - ${this.itemRuText[this.$root.rootRoute]}`;
                 document.title = `${this.config.name} - ${this.itemRuText[this.$root.rootRoute]}`;
             }
             }
         } else {
         } else {
@@ -185,7 +185,7 @@ class App extends Vue {
     }
     }
 
 
     get showAsideBar() {
     get showAsideBar() {
-        return (this.mode != 'reader' && this.mode != 'omnireader');
+        return (this.mode !== null && this.mode != 'reader' && this.mode != 'omnireader');
     }
     }
 
 
     get isReaderActive() {
     get isReaderActive() {