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