From e8b4c488dd5955bafa3fbdbd71cb125f67486415 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 20 Dec 2023 00:37:34 -0500 Subject: Declare static fields using modern JavaScript syntax (#400) --- ext/js/accessibility/google-docs-util.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ext/js/accessibility/google-docs-util.js') diff --git a/ext/js/accessibility/google-docs-util.js b/ext/js/accessibility/google-docs-util.js index 4321f082..151b6340 100644 --- a/ext/js/accessibility/google-docs-util.js +++ b/ext/js/accessibility/google-docs-util.js @@ -23,6 +23,9 @@ import {TextSourceRange} from '../dom/text-source-range.js'; * This class is a helper for handling Google Docs content in content scripts. */ export class GoogleDocsUtil { + /** @type {HTMLStyleElement|undefined} */ + static _styleNode = void 0; + /** * Scans the document for text or elements with text information at the given coordinate. * Coordinates are provided in [client space](https://developer.mozilla.org/en-US/docs/Web/CSS/CSSOM_View/Coordinate_systems). @@ -148,7 +151,3 @@ export class GoogleDocsUtil { style.setProperty(propertyName, value, 'important'); } } - -/** @type {HTMLStyleElement|undefined} */ -// eslint-disable-next-line no-underscore-dangle -GoogleDocsUtil._styleNode = void 0; -- cgit v1.2.3