Browse Source

Merge pull request #7012 from tschw/PlayerPortability

Player portability
Mr.doob 10 years ago
parent
commit
db30ac4cb3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      editor/js/libs/app.js

+ 2 - 2
editor/js/libs/app.js

@@ -167,7 +167,7 @@ var APP = {
 
 				} catch (e) {
 
-					console.error(e.stack || e);
+					console.error( ( e.message || e ), ( e.stack || "" ) );
 
 				}
 
@@ -212,7 +212,7 @@ var APP = {
 			dispatch( events.start, arguments );
 
 			request = requestAnimationFrame( animate );
-			prevTime = performance.now();
+			prevTime = ( window.performance || Date ).now();
 		};
 
 		this.stop = function () {