Browse Source

Merge pull request #7012 from tschw/PlayerPortability

Player portability
Mr.doob 10 năm trước cách đây
mục cha
commit
db30ac4cb3
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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 () {