From be0b10f20f52f0cdd91ee930d9da310810caa018 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Tue, 8 Oct 2024 08:55:59 +0000 Subject: [PATCH] Update apps/common/main/lib/util/themeinit.js [main] fix editors launch --- apps/common/main/lib/util/themeinit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/util/themeinit.js b/apps/common/main/lib/util/themeinit.js index e2ba2f5fd8..8cd8fcbf21 100644 --- a/apps/common/main/lib/util/themeinit.js +++ b/apps/common/main/lib/util/themeinit.js @@ -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"); });