Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit e9e4dcd

Browse files
committed
🚑 Fix theme switcher
1 parent d7dfdc9 commit e9e4dcd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_renderer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,8 @@ initGreeter = () => {
318318
};
319319

320320
window.themeChanger = (theme) => {
321-
window.focusShellTab(0);
322321
for (let i = 1; i <= 4; i++) {
323-
if (typeof window.term[i] !== undefined) {
322+
if (typeof window.term[i] === "object") {
324323
window.term[i].socket.close();
325324
delete window.term[i];
326325
document.getElementById("shell_tab"+i).innerText = "EMPTY";

0 commit comments

Comments
 (0)