From 82b63558d967d0cecb47737bce25ab097ae901f4 Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:26:51 +0800 Subject: [PATCH] style update --- src/hooks/useSettings.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/hooks/useSettings.js b/src/hooks/useSettings.js index 41a0bf8b..ddb018c2 100644 --- a/src/hooks/useSettings.js +++ b/src/hooks/useSettings.js @@ -91,7 +91,12 @@ const useSettings = () => { const initPolling = () => { //polling commands - if (uisettings.getValue('enablepolling', interfaceSettings.current.settings)) { + if ( + uisettings.getValue( + 'enablepolling', + interfaceSettings.current.settings + ) + ) { const pollingList = uisettings.getValue( 'pollingcmds', interfaceSettings.current.settings @@ -120,10 +125,7 @@ const useSettings = () => { cmdEntry.id + '-' + index ) } else { - sendCommand( - cmd, - cmdEntry.id + '-' + index - ) + sendCommand(cmd, cmdEntry.id + '-' + index) } } }) @@ -304,7 +306,7 @@ const useSettings = () => { page: 'connecting', }) document.title = connectionSettings.current.Hostname - setTimeout( initPolling, 2000) + setTimeout(initPolling, 2000) } function loadTheme(themepack) { if (!themepack) {