diff --git a/chrome/content/zotero/HiddenBrowser.mjs b/chrome/content/zotero/HiddenBrowser.mjs index 03b05e4a42..d7ebfe9970 100644 --- a/chrome/content/zotero/HiddenBrowser.mjs +++ b/chrome/content/zotero/HiddenBrowser.mjs @@ -24,9 +24,8 @@ */ -const { BlockingObserver } = ChromeUtils.importESModule("chrome://zotero/content/BlockingObserver.mjs"); - -ChromeUtils.importESModule("chrome://zotero/content/actors/ActorManager.mjs"); +import { BlockingObserver } from "chrome://zotero/content/BlockingObserver.mjs"; +import "chrome://zotero/content/actors/ActorManager.mjs"; /* global HiddenFrame, E10SUtils */ ChromeUtils.defineESModuleGetters(globalThis, { diff --git a/chrome/content/zotero/integration/citationDialog/helpers.mjs b/chrome/content/zotero/integration/citationDialog/helpers.mjs index c1034abc96..6e5f94641f 100644 --- a/chrome/content/zotero/integration/citationDialog/helpers.mjs +++ b/chrome/content/zotero/integration/citationDialog/helpers.mjs @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs"); +import { Zotero } from "chrome://zotero/content/zotero.mjs"; // Helper functions for citationDialog.js export class CitationDialogHelpers { diff --git a/chrome/content/zotero/integration/citationDialog/keyboardHandler.mjs b/chrome/content/zotero/integration/citationDialog/keyboardHandler.mjs index c14f2ca8b7..4b106721fc 100644 --- a/chrome/content/zotero/integration/citationDialog/keyboardHandler.mjs +++ b/chrome/content/zotero/integration/citationDialog/keyboardHandler.mjs @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs"); +import { Zotero } from "chrome://zotero/content/zotero.mjs"; // Keyboard handler for citationDialog export class CitationDialogKeyboardHandler { diff --git a/chrome/content/zotero/integration/citationDialog/popupHandler.mjs b/chrome/content/zotero/integration/citationDialog/popupHandler.mjs index 9f1f078aaa..bff4f2bb7c 100644 --- a/chrome/content/zotero/integration/citationDialog/popupHandler.mjs +++ b/chrome/content/zotero/integration/citationDialog/popupHandler.mjs @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs"); +import { Zotero } from "chrome://zotero/content/zotero.mjs"; // Handle the logic of opening popups and saving/discarding edits to the citation items export class CitationDialogPopupsHandler { diff --git a/chrome/content/zotero/integration/citationDialog/searchHandler.mjs b/chrome/content/zotero/integration/citationDialog/searchHandler.mjs index 002a217b38..420d52dfe2 100644 --- a/chrome/content/zotero/integration/citationDialog/searchHandler.mjs +++ b/chrome/content/zotero/integration/citationDialog/searchHandler.mjs @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs"); +import { Zotero } from "chrome://zotero/content/zotero.mjs"; const MIN_QUERY_LENGTH = 2; diff --git a/chrome/content/zotero/zotero.mjs b/chrome/content/zotero/zotero.mjs index fa0c17d23b..85d3552440 100644 --- a/chrome/content/zotero/zotero.mjs +++ b/chrome/content/zotero/zotero.mjs @@ -159,7 +159,7 @@ const xpcomFilesLocal = [ 'translation/translators', ]; -const { CommandLineOptions } = ChromeUtils.importESModule("chrome://zotero/content/modules/commandLineOptions.mjs"); +import { CommandLineOptions } from "chrome://zotero/content/modules/commandLineOptions.mjs"; var instanceID = (new Date()).getTime(); var isFirstLoadThisSession = true;