Skip to content

Commit

Permalink
webui: Fix Kill Logger can't be toggled
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <[email protected]>
  • Loading branch information
Rem01Gaming committed Nov 19, 2024
1 parent 08779a1 commit 480d161
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/webui/src/webui_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ async function getKillLogdSwitch() {
}

async function toggleKillLogdSwitch(isChecked) {
if (isChecked) {
const command = 'encore-utils set_kill_logd 1';
} else {
toast('Reboot your device to take effect');
const command = 'encore-utils set_kill_logd 0';
}
const command = isChecked
? 'encore-utils set_kill_logd 1'
: 'encore-utils set_kill_logd 0';
toast('Reboot your device to take effect');
await exec(command);
}

Expand Down

0 comments on commit 480d161

Please sign in to comment.