Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
austinyu12 committed Oct 21, 2024
1 parent a377455 commit 10501e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/js/display/query-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ export class QueryParser extends EventDispatcher {
*/
async setText(text) {
this._text = text;
this._setPreview(text); // this sets the text as the original, queried sentence
this._setPreview(text);

if (this._useInternalParser === false && this._useMecabParser === false) {
return;
}
/** @type {?import('core').TokenObject} */
const token = {};
this._setTextToken = token;
this._parseResults = await this._api.parseText(text, this._getOptionsContext(), this._scanLength, this._useInternalParser, this._useMecabParser); // everything below parses the queried sentence and puts spaces between them
this._parseResults = await this._api.parseText(text, this._getOptionsContext(), this._scanLength, this._useInternalParser, this._useMecabParser);
if (this._setTextToken !== token) { return; }

this._refreshSelectedParser();
Expand Down

0 comments on commit 10501e1

Please sign in to comment.