Мелкий рефакторинг

This commit is contained in:
Book Pauk
2020-03-04 15:32:05 +07:00
parent 25b4cb072d
commit 1aebbbcabd
4 changed files with 15 additions and 10 deletions

View File

@@ -423,7 +423,7 @@ class TextPage extends Vue {
if (this.lazyParseEnabled)
this.lazyParsePara();
} catch (e) {
this.$root.stdDialog.alert(e.message, 'Ошибка', {type: 'negative'});
this.$root.stdDialog.alert(e.message, 'Ошибка', {color: 'negative'});
}
})();
}
@@ -1132,7 +1132,7 @@ class TextPage extends Vue {
if (url && url.indexOf('file://') != 0) {
window.open(url, '_blank');
} else {
this.$root.stdDialog.alert('Оригинал недоступен, т.к. файл книги был загружен с локального диска.', ' ', {type: 'info'});
this.$root.stdDialog.alert('Оригинал недоступен, т.к. файл книги был загружен с локального диска.', ' ', {color: 'info'});
}
}