aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dom/document-util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/dom/document-util.js')
-rw-r--r--ext/js/dom/document-util.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/js/dom/document-util.js b/ext/js/dom/document-util.js
index 1ec699e6..a98bfe86 100644
--- a/ext/js/dom/document-util.js
+++ b/ext/js/dom/document-util.js
@@ -18,7 +18,9 @@
/**
* This class contains utility functions related to the HTML document.
+ * TODO : This class should be made non-static
*/
+// eslint-disable-next-line unicorn/no-static-only-class
export class DocumentUtil {
/** @type {?boolean} */
static _cssZoomSupported = null;
@@ -460,7 +462,7 @@ export class DocumentUtil {
if (typeof value !== 'string' || value.length === 0) {
return null;
}
- value = parseFloat(value);
+ value = Number.parseFloat(value);
}
return !Number.isNaN(value) ? value : null;
}