Добавлена настройка showWhatsNewDialog

This commit is contained in:
Book Pauk
2019-04-27 17:04:34 +07:00
parent d848ea35f4
commit b0a9a6a08e
3 changed files with 17 additions and 3 deletions

View File

@@ -262,6 +262,7 @@ class Reader extends Vue {
this.showClickMapPage = settings.showClickMapPage;
this.clickControl = settings.clickControl;
this.blinkCachedLoad = settings.blinkCachedLoad;
this.showWhatsNewDialog = settings.showWhatsNewDialog;
}
checkSetStorageAccessKey() {
@@ -282,7 +283,8 @@ class Reader extends Vue {
await utils.sleep(2000);
const whatsNew = versionHistory[0];
if (whatsNew.showUntil >= utils.formatDate(new Date(), 'coDate') &&
if (this.showWhatsNewDialog &&
whatsNew.showUntil >= utils.formatDate(new Date(), 'coDate') &&
utils.stringToHex(cryptoUtils.sha256(whatsNew.content)) != this.whatsNewContentHash) {
this.whatsNewContent = whatsNew.content;
this.whatsNewVisible = true;