Skip to content

Commit

Permalink
style update
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-github committed Jan 15, 2024
1 parent ee19340 commit 82b6355
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/hooks/useSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -120,10 +125,7 @@ const useSettings = () => {
cmdEntry.id + '-' + index
)
} else {
sendCommand(
cmd,
cmdEntry.id + '-' + index
)
sendCommand(cmd, cmdEntry.id + '-' + index)
}
}
})
Expand Down Expand Up @@ -304,7 +306,7 @@ const useSettings = () => {
page: 'connecting',
})
document.title = connectionSettings.current.Hostname
setTimeout( initPolling, 2000)
setTimeout(initPolling, 2000)
}
function loadTheme(themepack) {
if (!themepack) {
Expand Down

0 comments on commit 82b6355

Please sign in to comment.