From 50042aa36d556ad35d82478604b8bdbbfef6c80b Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Thu, 14 Feb 2019 21:51:22 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82=20=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD=D1=8E=D1=8E=20=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D1=80=D1=8B=D1=82=D1=83=D1=8E=20=D0=BA=D0=BD=D0=B8=D0=B3?= =?UTF-8?q?=D1=83,=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=BD=D0=B5=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B4=D0=B0=D0=BD=20=D1=8F=D0=B2=D0=BD=D0=BE=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/Reader.vue | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue index 8dc1fe5e..fb3d0ccb 100644 --- a/client/components/Reader/Reader.vue +++ b/client/components/Reader/Reader.vue @@ -139,6 +139,12 @@ export default @Component({ this.showClickMapPage = newValue.showClickMapPage; this.updateRoute(); }, + loaderActive: function(newValue) { + const recent = this.mostRecentBook(); + if (!newValue && !this.loading && recent && !bookManager.hasBookParsed(recent)) { + this.loadBook(recent); + } + }, }, }) class Reader extends Vue { @@ -205,8 +211,6 @@ class Reader extends Vue { if (this.$root.rootRoute == '/reader') { if (this.routeParamUrl) { this.loadBook({url: this.routeParamUrl, bookPos: this.routeParamPos}); - } else if (this.mostRecentBook()) { - this.loadBook({url: this.mostRecentBook().url}); } else { this.loaderActive = true; } diff --git a/package.json b/package.json index 59d779dd..c01ab4be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Liberama", - "version": "0.1.6", + "version": "0.1.7", "engines": { "node": ">=10.0.0" },