Skip to content

Commit e2de4e4

Browse files
committed
fix: add better logging
1 parent 47aae49 commit e2de4e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/browser/pages/vscode.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ export function setBodyBackgroundToThemeBackgroundColor(document: Document, loca
150150
}
151151

152152
try {
153-
document.body.style.background = JSON.parse(localStorage.getItem("colorThemeData")!).colorMap["editor.background"]
153+
setBodyBackgroundToThemeBackgroundColor(document, localStorage)
154154
} catch (error) {
155-
// Oh well.
156-
// TODO@jsjoeio add better logging here
155+
console.error("Something went wrong setting the body background to the theme background color.")
156+
console.error(error)
157157
}

0 commit comments

Comments
 (0)