fix(launchscreen): hack until renderer sync fixed upstream

This commit is contained in:
Ben Gotow 2016-02-18 16:09:30 -08:00
parent d722153de7
commit c3ca9c4a9e
2 changed files with 25 additions and 17 deletions

View file

@ -665,6 +665,13 @@ class NylasEnvConstructor extends Model
startRootWindow: ->
{safeMode, windowType, initializeInBackground} = @getLoadSettings()
# Temporary. It takes five paint cycles for all the CSS in index.html to
# be applied. Remove if https://github.com/atom/brightray/issues/196 fixed!
window.requestAnimationFrame =>
window.requestAnimationFrame =>
window.requestAnimationFrame =>
window.requestAnimationFrame =>
window.requestAnimationFrame =>
@displayWindow() unless initializeInBackground
@registerCommands()

File diff suppressed because one or more lines are too long