Phantomjs does not have requestAnimationFrame

This commit is contained in:
Éric Lemoine
2013-11-13 22:09:06 +01:00
committed by Tom Payne
parent 6493998a22
commit 4090b3f8b1

View File

@@ -8,6 +8,10 @@
return;
}
if (!window.requestAnimationFrame) {
return;
}
var fpsElement = document.createElement('span');
fpsElement.style.color = 'white';