Phantomjs does not have requestAnimationFrame
This commit is contained in:
@@ -8,6 +8,10 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!window.requestAnimationFrame) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var fpsElement = document.createElement('span');
|
var fpsElement = document.createElement('span');
|
||||||
fpsElement.style.color = 'white';
|
fpsElement.style.color = 'white';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user