Spaces:
Runtime error
Runtime error
disable keyboar events on results
Browse files
frontend/src/lib/Result.svelte
CHANGED
@@ -57,12 +57,12 @@
|
|
57 |
const compName = badgesComponents[totalStreaks];
|
58 |
badgeComponent = (await import(`./badges/${compName}.svelte`)).default;
|
59 |
}
|
60 |
-
window.addEventListener('keyup', onKeyup, true);
|
61 |
});
|
62 |
|
63 |
-
onDestroy(() => {
|
64 |
-
|
65 |
-
});
|
66 |
const s = 10;
|
67 |
const p = 1;
|
68 |
const rx = s / 10;
|
|
|
57 |
const compName = badgesComponents[totalStreaks];
|
58 |
badgeComponent = (await import(`./badges/${compName}.svelte`)).default;
|
59 |
}
|
60 |
+
// window.addEventListener('keyup', onKeyup, true);
|
61 |
});
|
62 |
|
63 |
+
// onDestroy(() => {
|
64 |
+
// window.removeEventListener('keyup', onKeyup, true);
|
65 |
+
// });
|
66 |
const s = 10;
|
67 |
const p = 1;
|
68 |
const rx = s / 10;
|