diff --git a/js/type.js b/js/type.js index 86ef5d1..ede76ca 100644 --- a/js/type.js +++ b/js/type.js @@ -530,7 +530,11 @@ function saveCursor(obj) { } function loadElapsedTime(obj) { - elapsedTime = obj.elapsedTime; + if (obj && obj.elapsedTime) { + elapsedTime = obj.elapsedTime; + } else { + elapsed = 0; + } } function saveElapsedTime(obj) {