Spaces:
Runtime error
Runtime error
HuggingFace-SK
commited on
Commit
·
dd8cdc8
1
Parent(s):
d5c0578
reduce backspace delay
Browse files
templates/browser-detect.html
CHANGED
|
@@ -225,7 +225,7 @@ if ('speechSynthesis' in window) {
|
|
| 225 |
var current_time = Math.round(Date.now())
|
| 226 |
console.log(current_time - last_letter_time)
|
| 227 |
if (previous_result == current_result) {
|
| 228 |
-
if (current_time - last_letter_time >
|
| 229 |
last_letter_time = current_time
|
| 230 |
word_list.pop()
|
| 231 |
console.log(word_list)
|
|
|
|
| 225 |
var current_time = Math.round(Date.now())
|
| 226 |
console.log(current_time - last_letter_time)
|
| 227 |
if (previous_result == current_result) {
|
| 228 |
+
if (current_time - last_letter_time > 250) {
|
| 229 |
last_letter_time = current_time
|
| 230 |
word_list.pop()
|
| 231 |
console.log(word_list)
|