From 1eb307e6d8ac59f1bbeeb221125e0f7b48753692 Mon Sep 17 00:00:00 2001 From: mohandast52 Date: Tue, 28 May 2024 13:32:10 +0530 Subject: [PATCH 1/2] chore: Fix typo in electron/loading/index.html --- electron/loading/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/loading/index.html b/electron/loading/index.html index e8f1767ee..5cadebbd3 100644 --- a/electron/loading/index.html +++ b/electron/loading/index.html @@ -29,12 +29,12 @@ const { ipcRenderer } = require("electron"); ipcRenderer.on("response", (event, arg) => { if (typeof arg === "string") { - if (arg.includes(/Installing/)) { + if (arg.includes("Installing")) { document.getElementById("text").innerHTML = `Installing app dependencies...
This might take a while`; - } else if (arg.includes(/Development mode/)) { + } else if (arg.includes("Development mode")) { document.getElementById("text").innerHTML = arg; } } From c869e1552aef69052715af014763405fbf250e4e Mon Sep 17 00:00:00 2001 From: mohandast52 Date: Tue, 28 May 2024 14:14:40 +0530 Subject: [PATCH 2/2] Refactor condition in electron/loading/index.html for better readability --- electron/loading/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/loading/index.html b/electron/loading/index.html index 5cadebbd3..12e942969 100644 --- a/electron/loading/index.html +++ b/electron/loading/index.html @@ -34,7 +34,7 @@ `Installing app dependencies...
This might take a while`; - } else if (arg.includes("Development mode")) { + } else if (arg.includes("Development")) { document.getElementById("text").innerHTML = arg; } }