aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-10 16:58:33 +0100
committer0neGal <mail@0negal.com>2022-01-10 17:00:48 +0100
commit0ceea0f8699d02054ba86c8171ad834a8cdf4747 (patch)
treedc3659357f9e991d24c07537309fc132750272ad /src/app/main.js
parent99737d8461108b20b902faa0d6bcfb4b43d44f29 (diff)
downloadViper-0ceea0f8699d02054ba86c8171ad834a8cdf4747.tar.gz
Viper-0ceea0f8699d02054ba86c8171ad834a8cdf4747.zip
.disabled instead of .[remove/set]Attribute()
Doing <elem>.disabled = true is the same as <elem>.setAttribute("disabled", ""), same with <elem>.disabled = false, being the same as <elem>.removeAttribute("disabled")
Diffstat (limited to 'src/app/main.js')
-rw-r--r--src/app/main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 9c6619d..c365cf4 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -120,8 +120,8 @@ function installmod() {
ipcRenderer.on("ns-updated", () => {
setButtons(true);
- updateBtn.innerText = lang('gui.update');
- northstar.removeAttribute('disabled');
+ northstar.disabled = false;
+ updateBtn.innerText = lang("gui.update");
})
ipcRenderer.on("ns-updating", () => {setButtons(false)})
@@ -164,9 +164,9 @@ ipcRenderer.on("version", (event, versions) => {
}
// Since Northstar is not installed, we cannot launch it
- updateBtn.innerText = lang('gui.installnorthstar');
- northstar.setAttribute('disabled', '');
+ northstar.disabled = true;
shouldInstallNorthstar = true;
+ updateBtn.innerText = lang("gui.installnorthstar");
}
}); ipcRenderer.send("getversion");