From 1e91bf151f43ad05138e862ba4a03abad6929e5f Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 24 Sep 2022 16:05:19 -0400 Subject: DocumentUtil static (#2232) * Make all methods static The two non-static methods are kept for temporary compatibility * Use this instead of class name now that functions are static * Update test * Don't instantiate DocumentUtil * Remove temporary non-static methods * Remove unused global declaration --- ext/js/app/frontend.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'ext/js/app') diff --git a/ext/js/app/frontend.js b/ext/js/app/frontend.js index de3eb7fd..4f704faf 100644 --- a/ext/js/app/frontend.js +++ b/ext/js/app/frontend.js @@ -73,13 +73,11 @@ class Frontend { this._pageZoomFactor = 1.0; this._contentScale = 1.0; this._lastShowPromise = Promise.resolve(); - this._documentUtil = new DocumentUtil(); this._textScanner = new TextScanner({ node: window, ignoreElements: this._ignoreElements.bind(this), ignorePoint: this._ignorePoint.bind(this), getSearchContext: this._getSearchContext.bind(this), - documentUtil: this._documentUtil, searchTerms: true, searchKanji: true }); -- cgit v1.2.3