aboutsummaryrefslogtreecommitdiff
path: root/beamer/viewer
diff options
context:
space:
mode:
authorpacien2023-10-26 20:48:00 +0200
committerpacien2023-10-26 20:49:02 +0200
commitc6d2e8da992db456683e38b8fdcaa9c6d404a3f6 (patch)
tree2c88d9cc9c33bba53ab60cc91c6310ad4d26cd41 /beamer/viewer
parent1f4724edbaaddccf46aa3157abb0fa9fb71eece2 (diff)
downloadbeamer-viewer-c6d2e8da992db456683e38b8fdcaa9c6d404a3f6.tar.gz
viewer,timer: replace deprecated substr
Diffstat (limited to 'beamer/viewer')
-rw-r--r--beamer/viewer/screen/timer.js2
-rw-r--r--beamer/viewer/viewer.js2
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 });