diff --git a/package.json b/package.json index 44af357..f8aced2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "altarik-launcher", "author": "Altarik", - "version": "2.1.8", + "version": "2.2.0", "description": "Altarik Launcher", "main": "src/server/main.js", "type": "module", @@ -35,17 +35,17 @@ "@electron-forge/maker-zip": "^7.4.0", "@electron-forge/plugin-auto-unpack-natives": "^7.4.0", "@electron-forge/publisher-github": "^7.4.0", - "electron": "31.1.0", - "eslint": "^9.6.0", + "electron": "32.0.1", + "eslint": "^9.9.1", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-n": "^17.9.0", - "eslint-plugin-promise": "^6.2.0" + "eslint-plugin-promise": "^6.6.0" }, "dependencies": { "decompress": "^4.2.1", "electron-is-dev": "^3.0.1", - "electron-log": "^5.1.5", + "electron-log": "^5.1.7", "electron-squirrel-startup": "^1.0.1", "extract-zip": "^2.0.1", "hasha": "^6.0.0", 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.