Skip to content
Snippets Groups Projects
Commit a42a207e authored by HJ's avatar HJ :fire:
Browse files

fix v2 on v1

parent 91272dc5
Branches bugfix/object-fetching-handle-mrf-reject
No related tags found
1 merge request!380WIP: themes v2: fix white screen on v1 with v2 theme in indexedDB (keeping this in case anyone needs it)
Pipeline #
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment