aboutsummaryrefslogtreecommitdiff
path: root/ext/js/core
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-01-27 04:01:37 -0500
committerGitHub <noreply@github.com>2024-01-27 09:01:37 +0000
commit7a142bbafd6aa6ca5fe296ba3012158d8f2e75dc (patch)
tree698be195228b5b739a2acf77e34906b56fb80eca /ext/js/core
parenta3224f688f44c9c913f32add1223e922ce88e65a (diff)
Remove unneeded eslint disables (#554)
* Install eslint-plugin-eslint-comments * Update rules, fix issues
Diffstat (limited to 'ext/js/core')
-rw-r--r--ext/js/core/utilities.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/js/core/utilities.js b/ext/js/core/utilities.js
index 1fc2da42..784acdaf 100644
--- a/ext/js/core/utilities.js
+++ b/ext/js/core/utilities.js
@@ -303,14 +303,12 @@ export function promiseAnimationFrame(timeout) {
const onTimeout = () => {
timer = null;
if (frameRequest !== null) {
- // eslint-disable-next-line no-undef
cancelAnimationFrame(frameRequest);
frameRequest = null;
}
resolve({time: performance.now(), timeout: true});
};
- // eslint-disable-next-line no-undef
frameRequest = requestAnimationFrame(onFrame);
if (typeof timeout === 'number') {
timer = setTimeout(onTimeout, timeout);