diff --git a/ext/js/dom/text-source-range.js b/ext/js/dom/text-source-range.js index 42032786d5..86b0041a4d 100644 --- a/ext/js/dom/text-source-range.js +++ b/ext/js/dom/text-source-range.js @@ -97,15 +97,15 @@ export class TextSourceRange { /** * Determines whether the imposter source element is an input or textarea element. - * @return {boolean} `true` if the imposter source element is an input or textarea element, `false` otherwise. + * @returns {boolean} `true` if the imposter source element is an input or textarea element, `false` otherwise. */ - isImposterInputOrTextArea() { + isImposterInputOrTextArea() { if (this._imposterSourceElement) { const type = this._imposterSourceElement.nodeName.toUpperCase(); return type === 'INPUT' || type === 'TEXTAREA'; } return false; - } + } /** * Creates a clone of the instance. diff --git a/ext/js/language/text-scanner.js b/ext/js/language/text-scanner.js index 03f7aef552..c04c7f7f8b 100644 --- a/ext/js/language/text-scanner.js +++ b/ext/js/language/text-scanner.js @@ -344,7 +344,7 @@ export class TextScanner extends EventDispatcher { const includeSelector = this._includeSelector; const excludeSelector = this._getExcludeSelectorForPointerType(pointerType); - if (includeSelector !== null || excludeSelector !== null ) { + if (includeSelector !== null || excludeSelector !== null) { this._constrainTextSource(clonedTextSource, includeSelector, excludeSelector, layoutAwareScan); } @@ -1658,7 +1658,7 @@ export class TextScanner extends EventDispatcher { _getExcludeSelectorForPointerType(pointerType) { if (pointerType === 'touch') { // Avoid trigger search with tapping on interactive elements. - const popupClickableSelector = '.gloss-link,.gloss-link *,.tag, .tag *, .inflection, a, a *' + const popupClickableSelector = '.gloss-link,.gloss-link *,.tag, .tag *, .inflection, a, a *'; return this._excludeSelector ? `${this._excludeSelector},${popupClickableSelector}` : popupClickableSelector; } return this._excludeSelector;