From 9138696a8670cfd934d323549676fc7eb4b98018 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Fri, 15 Apr 2022 16:44:29 +0530 Subject: [PATCH] feat: auto-reload on update chrome page --- package.json | 2 +- src/preload.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7e519c36..fd1c963b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "altus", "productName": "Altus", - "version": "4.7.0", + "version": "4.7.1", "description": "Desktop client for WhatsApp Web with themes & multiple account support.", "main": "src/index.js", "homepage": "https://gitlab.com/amanharwara/altus", diff --git a/src/preload.js b/src/preload.js index 6fbb872b..d7be0f49 100644 --- a/src/preload.js +++ b/src/preload.js @@ -12,10 +12,11 @@ let quickRepliesStore = new Store({ defaults: {}, }); +ipcRenderer.send("flush-session-data"); + window.onload = () => { const title_element = document.querySelector(".landing-title"); if (title_element && title_element.innerHTML.includes("Google Chrome")) { - ipcRenderer.send("flush-session-data"); window.location.reload(); }