From e93922e93488fef34a7e4d52105da78c1096ee12 Mon Sep 17 00:00:00 2001 From: Anoncer Date: Tue, 7 Nov 2023 12:00:01 +0100 Subject: [PATCH] Fix error Episode selection #67 --- javascript/pages/watch/mod_history.js | 4 +++- sw.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/javascript/pages/watch/mod_history.js b/javascript/pages/watch/mod_history.js index fd79a99..3491d43 100644 --- a/javascript/pages/watch/mod_history.js +++ b/javascript/pages/watch/mod_history.js @@ -31,9 +31,11 @@ const _history = { const history = this.get(); const { russian, screenshots } = this.shikiData; const episode = cnt ? e + i : e + i; - let image = `${screenshots[0].original}`; + let image = ""; if (this.screenData?.length > 0) { image = `${this.screenData[this.idImage].original}`; + }else{ + image = `${screenshots[0].original}`; } const dub = Player().translation.name; const type = this.shikiData.kind == "movie" ? "Фильм" : this.shikiData.kind == "ova" ? "OVA" : this.shikiData.kind == "ona" ? "ONA" : "Аниме"; diff --git a/sw.js b/sw.js index 5d8df3c..b7c3829 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -var version = '114'; +var version = '115'; var cacheName = 'pwa-tunime-v' + version; var appShellFilesToCache = [ // Директория: /images/icons