🐛 Give priority to initial window background

Otherwise, since we now add styles element right during AtomEnvironment
construction, the default background gets showed (i.e. white on my machine).

/cc: @nathansobo
This commit is contained in:
Antonio Scandurra
2015-10-15 11:05:12 +02:00
parent c38cd48555
commit 82fbec0879

View File

@@ -168,7 +168,7 @@
var backgroundStylesheet = document.createElement('style')
backgroundStylesheet.type = 'text/css'
backgroundStylesheet.innerText = 'html, body { background: ' + backgroundColor + '; }'
backgroundStylesheet.innerText = 'html, body { background: ' + backgroundColor + ' !important; }'
document.head.appendChild(backgroundStylesheet)
// Remove once the page loads