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