From bccb8526ebdf52d453cccda4f66d0839e06c6005 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 9 Feb 2019 02:24:01 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BE=D1=80=D0=B8=D0=B3=D0=B8=D0=BD=D0=B0=D0=BB=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/TextPage/TextPage.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/components/Reader/TextPage/TextPage.vue b/client/components/Reader/TextPage/TextPage.vue index 236ce3c0..fd5e522e 100644 --- a/client/components/Reader/TextPage/TextPage.vue +++ b/client/components/Reader/TextPage/TextPage.vue @@ -1052,7 +1052,12 @@ class TextPage extends Vue { } onStatusBarClick() { - window.open(this.meta.url, '_blank'); + const url = this.meta.url; + if (url && url.indexOf('file://') != 0) { + window.open(url, '_blank'); + } else { + this.$alert('Оригинал не доступен, т.к. файл книги был загружен с локального диска', '', {type: 'warning'}); + } } handleClick(pointX, pointY) {