diff --git a/src/client/assets/js/index.js b/src/client/assets/js/index.js index c85c7e8..b8b2f00 100644 --- a/src/client/assets/js/index.js +++ b/src/client/assets/js/index.js @@ -37,7 +37,7 @@ app = vue.createApp({ position: 'topRight', resetOnHover: true }) - setInterval(() => { + setTimeout(() => { ipcRenderer.send('pageReady') }, 500) }, @@ -98,11 +98,20 @@ app = vue.createApp({ this.displayCredits = 'block' }, updateModsInformations (content) { - this.modsInformations = content + if(content === null) { + this.modsInformations = [] + } else { + this.modsInformations = content + } }, getModsInformations () { return this.modsInformations }, + reloadChapters() { + this.updateModsInformations(null) + this.modsInformationsLoaded = true + ipcRenderer.send('pageReady') + }, showInfo (title, body) { iziToast.info({ title, diff --git a/src/client/index.html b/src/client/index.html index 3807469..411c34a 100644 --- a/src/client/index.html +++ b/src/client/index.html @@ -71,7 +71,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.