Fix complainy by sonarcloud

This commit is contained in:
Mar0xy 2023-07-30 21:22:38 +02:00
parent e9434cc5ea
commit ffe8278c8c
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828

View File

@ -146,7 +146,7 @@ window.addEventListener("DOMContentLoaded", () => {
}
// Live update the view for ListenBrainz input, hide if disabled/show if enabled
if (source.value === "on" && source.id === "enableListenBrainz") {
source.checked ? document.getElementById("listenbrainz__options").hidden = false : document.getElementById("listenbrainz__options").hidden = true;
source.checked ? document.getElementById("listenbrainz__options").setAttribute("hidden", "false") : document.getElementById("listenbrainz__options").setAttribute("hidden", "true");
}
ipcRenderer.send(globalEvents.storeChanged);
});