Fix Uncaught TypeError: Cannot read property 'update' of undefined (#567)

Closes #539.
This commit is contained in:
Feross Aboukhadijeh
2016-05-22 23:20:30 -07:00
committed by DC
parent eba09430e3
commit fca1d9dae4

View File

@@ -183,7 +183,7 @@ function render (state) {
// Calls render() to go from state -> UI, then applies to vdom to the real DOM.
function update () {
showOrHidePlayerControls()
vdomLoop.update(state)
if (vdomLoop) vdomLoop.update(state)
updateElectron()
}