Skip to content

Commit a3e6c68

Browse files
committed
Fix no const before variable declaration
1 parent 94d905a commit a3e6c68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

utils/wasm-keystroke.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class WASMKeystrokeManager {
9898
}
9999

100100
captureKeyDown(event) {
101-
timestamp = performance.now();
101+
const timestamp = performance.now();
102102
if (!this.initialized) {
103103
console.warn('WASM not initialized');
104104
return;
@@ -136,7 +136,7 @@ class WASMKeystrokeManager {
136136
}
137137

138138
captureKeyUp(event) {
139-
timestamp = performance.now();
139+
const timestamp = performance.now();
140140
if (!this.initialized) {
141141
console.warn('WASM not initialized');
142142
return;

0 commit comments

Comments
 (0)