diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index 493d444e..3297ec91 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -58,6 +58,12 @@ const setColors = (col, commit) => { const body = document.body body.style.display = 'none' + // This prevents white screen with v2 themes on v1 engine + if (!col.text) { + body.style.display = 'initial' + return + } + const styleEl = document.createElement('style') head.appendChild(styleEl) const styleSheet = styleEl.sheet