Update apps/common/main/lib/util/themeinit.js

[main] fix editors launch
This commit is contained in:
Maxim Kadushkin
2024-10-08 08:55:59 +00:00
parent 543609111a
commit be0b10f20f

View File

@ -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");
});