Skip to content

Commit

Permalink
feat(webshell): nicer darkmode icon
Browse files Browse the repository at this point in the history
  • Loading branch information
notthetup committed Feb 20, 2024
1 parent 9bde53b commit bf9ea02
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/resources/org/arl/fjage/web/shell/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@
let delta = 200;
let fitAddon;
let currentTheme = 'dark';
// let hideModeToggle = !window.hideModeToggle;
let hideModeToggle = false;
let parentTheme = window.parent.document.documentElement.className;
if (parentTheme == 'light' || parentTheme == 'dark'){
currentTheme = parentTheme;
hideModeToggle = true;
}
window.shellready = false;
function connectSocket(term, url, path){
const ws = new WebSocket('ws://' + url + path);
Expand Down

0 comments on commit bf9ea02

Please sign in to comment.