소스 검색

improve npm header for browser + nodejs compatibility.

Ben Houston 12 년 전
부모
커밋
3b8609e1c4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      utils/npm/header.js

+ 1 - 1
utils/npm/header.js

@@ -9,7 +9,7 @@ if( window.performance === undefined ) {
 
 }
 
-if( window.performance.now === undefined ) {
+if( ( window.performance.now === undefined ) && ( process !== undefined ) && ( process.hrtime !== undefined ) ) {
 
 	window.performance.now = function () {