Skip to content

Commit

Permalink
Fix code style for HTML/JS files
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 30, 2024
1 parent b8b90ab commit fd6014c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion www/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
r = await fetch('api/config', {method: 'POST', body: editor.getValue()});
if (r.ok) {
alert('OK');
fetch('api/restart', {method: 'POST'});
await fetch('api/restart', {method: 'POST'});
} else {
alert(await r.text());
}
Expand Down
4 changes: 2 additions & 2 deletions www/log.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
.replace(/\n/g, '<br>');
}

let reverseBtn = document.getElementById('reverse');
let update = document.getElementById('update');
const reverseBtn = document.getElementById('reverse');
const update = document.getElementById('update');

let reverseOrder = false;
let autoUpdateEnabled = true;
Expand Down
3 changes: 2 additions & 1 deletion www/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ document.addEventListener('DOMContentLoaded', () => {
// Update the editor theme based on the dark mode state
const updateEditorTheme = () => {
if (typeof editor !== 'undefined') {
editor.setTheme(isDarkModeEnabled() ? "ace/theme/tomorrow_night_eighties" : "ace/theme/github"); }
editor.setTheme(isDarkModeEnabled() ? 'ace/theme/tomorrow_night_eighties' : 'ace/theme/github');
}
};

// Initial update for dark mode and toggle button
Expand Down

0 comments on commit fd6014c

Please sign in to comment.