diff --git a/VERSION b/VERSION index 415b19f..10bf840 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0 \ No newline at end of file +2.0.1 \ No newline at end of file diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 26d0ca2..1ebf091 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -345,7 +345,7 @@ function changeKey(keynumber, value) { } if (keyChanged && value) { - if (performance.now()) { + if (typeof performance !== 'undefined' && performance.now()) { prevTime = performance.now(); } else { prevTime = Date.now(); @@ -356,7 +356,7 @@ function changeKey(keynumber, value) { function keyRepeat() { var newTime; - if (performance.now()) { + if (typeof performance !== 'undefined' && performance.now()) { newTime = performance.now(); } else { newTime = Date.now();