diff --git a/ext/js/app/popup.js b/ext/js/app/popup.js index eb5e85a58..c8ecdf687 100644 --- a/ext/js/app/popup.js +++ b/ext/js/app/popup.js @@ -21,6 +21,7 @@ import {DynamicProperty} from '../core/dynamic-property.js'; import {EventDispatcher} from '../core/event-dispatcher.js'; import {EventListenerCollection} from '../core/event-listener-collection.js'; import {ExtensionError} from '../core/extension-error.js'; +import {safePerformance} from '../core/safe-performance.js'; import {deepEqual} from '../core/utilities.js'; import {addFullscreenChangeEventListener, computeZoomScale, convertRectZoomCoordinates, getFullscreenElement} from '../dom/document-util.js'; import {loadStyle} from '../dom/style-util.js'; diff --git a/ext/js/comm/cross-frame-api.js b/ext/js/comm/cross-frame-api.js index e1413687a..1b7d3f69e 100644 --- a/ext/js/comm/cross-frame-api.js +++ b/ext/js/comm/cross-frame-api.js @@ -22,6 +22,7 @@ import {EventListenerCollection} from '../core/event-listener-collection.js'; import {ExtensionError} from '../core/extension-error.js'; import {parseJson} from '../core/json.js'; import {log} from '../core/log.js'; +import {safePerformance} from '../core/safe-performance.js'; /** * @augments EventDispatcher diff --git a/ext/js/language/text-scanner.js b/ext/js/language/text-scanner.js index ef1451f76..c99d7c063 100644 --- a/ext/js/language/text-scanner.js +++ b/ext/js/language/text-scanner.js @@ -16,13 +16,14 @@ * along with this program. If not, see . */ -import { ThemeController } from '../app/theme-controller.js'; -import { EventDispatcher } from '../core/event-dispatcher.js'; -import { EventListenerCollection } from '../core/event-listener-collection.js'; -import { log } from '../core/log.js'; -import { clone } from '../core/utilities.js'; -import { anyNodeMatchesSelector, everyNodeMatchesSelector, getActiveModifiers, getActiveModifiersAndButtons, isPointInSelection } from '../dom/document-util.js'; -import { TextSourceElement } from '../dom/text-source-element.js'; +import {ThemeController} from '../app/theme-controller.js'; +import {EventDispatcher} from '../core/event-dispatcher.js'; +import {EventListenerCollection} from '../core/event-listener-collection.js'; +import {log} from '../core/log.js'; +import {safePerformance} from '../core/safe-performance.js'; +import {clone} from '../core/utilities.js'; +import {anyNodeMatchesSelector, everyNodeMatchesSelector, getActiveModifiers, getActiveModifiersAndButtons, isPointInSelection} from '../dom/document-util.js'; +import {TextSourceElement} from '../dom/text-source-element.js'; const SCAN_RESOLUTION_EXCLUDED_LANGUAGES = new Set(['ja', 'zh', 'yue', 'ko']);