Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
|
a42a207e1b |
1 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,12 @@ const setColors = (col, commit) => {
|
||||||
const body = document.body
|
const body = document.body
|
||||||
body.style.display = 'none'
|
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')
|
const styleEl = document.createElement('style')
|
||||||
head.appendChild(styleEl)
|
head.appendChild(styleEl)
|
||||||
const styleSheet = styleEl.sheet
|
const styleSheet = styleEl.sheet
|
||||||
|
|
Loading…
Reference in a new issue