From a42a207e1b7ad2d87a50d9b07f85e1be280fcfee Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 26 Nov 2018 05:35:27 +0300 Subject: [PATCH] fix v2 on v1 --- src/services/style_setter/style_setter.js | 6 ++++++ 1 file changed, 6 insertions(+) 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