diff options
-rw-r--r-- | beamer/viewer/screen/timer.js | 2 | ||||
-rw-r--r-- | beamer/viewer/viewer.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/beamer/viewer/screen/timer.js b/beamer/viewer/screen/timer.js index 112a421..0f5d9bc 100644 --- a/beamer/viewer/screen/timer.js +++ b/beamer/viewer/screen/timer.js | |||
@@ -78,7 +78,7 @@ class Timer { | |||
78 | _setDisplay(seconds) { | 78 | _setDisplay(seconds) { |
79 | const dateObj = new Date(null); | 79 | const dateObj = new Date(null); |
80 | dateObj.setSeconds(seconds); | 80 | dateObj.setSeconds(seconds); |
81 | this.display.textContent = dateObj.toISOString().substr(11, 8); | 81 | this.display.textContent = dateObj.toISOString().slice(11, 11+8); |
82 | } | 82 | } |
83 | 83 | ||
84 | _toggleDisplay(active) { | 84 | _toggleDisplay(active) { |
diff --git a/beamer/viewer/viewer.js b/beamer/viewer/viewer.js index 28c0187..d8d7668 100644 --- a/beamer/viewer/viewer.js +++ b/beamer/viewer/viewer.js | |||
@@ -107,7 +107,7 @@ class Viewer { | |||
107 | 107 | ||
108 | _hash_params() { | 108 | _hash_params() { |
109 | const queryDict = {}; | 109 | const queryDict = {}; |
110 | location.hash.substr(1).split("&").forEach(item => { | 110 | location.hash.slice(1).split("&").forEach(item => { |
111 | const pair = item.split("="); | 111 | const pair = item.split("="); |
112 | queryDict[pair[0]] = pair[1]; | 112 | queryDict[pair[0]] = pair[1]; |
113 | }); | 113 | }); |