Skip to content

Commit

Permalink
Update apps/common/main/lib/util/themeinit.js
Browse files Browse the repository at this point in the history
[main] fix editors launch
  • Loading branch information
maxkadushkin committed Oct 8, 2024
1 parent 5436091 commit be0b10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/common/main/lib/util/themeinit.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
}
}
} else {
if ( window.uitheme.id.lastIndexOf("theme-gray", 0) === 0 ) {
if ( window.uitheme.id && window.uitheme.id.lastIndexOf("theme-gray", 0) === 0 ) {
header_tokens.forEach(function (i) {
!!document.documentElement.style.setProperty('--' + i, "#f7f7f7");
});
Expand Down

0 comments on commit be0b10f

Please sign in to comment.