Provide a fake window in needed, making runtime run on node.js
This commit is contained in:
parent
71fb0a3663
commit
117294ee94
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ ElmRuntime.filterDeadInputs = function(inputs) {
|
|||
|
||||
// define the draw function
|
||||
var vendors = ['ms', 'moz', 'webkit', 'o'];
|
||||
var window = window || {};
|
||||
for (var i = 0; i < vendors.length && !window.requestAnimationFrame; ++i) {
|
||||
window.requestAnimationFrame = window[vendors[i]+'RequestAnimationFrame'];
|
||||
window.cancelAnimationFrame = window[vendors[i]+'CancelAnimationFrame'] ||
|
||||
|
|
Loading…
Reference in a new issue