diff --git a/chrome/content/zotero/ZoteroProtocolHandler.mjs b/chrome/content/zotero/ZoteroProtocolHandler.mjs index 77a5f3c7a7..50f2099aa9 100644 --- a/chrome/content/zotero/ZoteroProtocolHandler.mjs +++ b/chrome/content/zotero/ZoteroProtocolHandler.mjs @@ -32,7 +32,6 @@ const ZOTERO_PROTOCOL_CID = Components.ID("{9BC3D762-9038-486A-9D70-C997AF848A7C const ZOTERO_PROTOCOL_CONTRACTID = "@mozilla.org/network/protocol;1?name=" + ZOTERO_SCHEME; const ZOTERO_PROTOCOL_NAME = "Zotero Chrome Extension Protocol"; -ChromeUtils.importESModule("resource://gre/modules/ComponentUtils.sys.mjs"); import { NetUtil } from "resource://gre/modules/NetUtil.sys.mjs"; const Cc = Components.classes; @@ -1404,7 +1403,6 @@ AsyncChannel.prototype = { this.contentType = Zotero.MIME.getMIMETypeFromData(sample); } - ChromeUtils.importESModule("resource://gre/modules/NetUtil.sys.mjs"); NetUtil.asyncFetch({ uri: data, loadUsingSystemPrincipal: true }, function (inputStream, status) { if (!Components.isSuccessCode(status)) { reject(); diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js index 7e08e5065d..6d46959a65 100644 --- a/chrome/content/zotero/xpcom/translation/translate_firefox.js +++ b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -34,8 +34,6 @@ const BOMs = { "UTF-32LE":"\xFF\xFE\x00\x00" } -ChromeUtils.importESModule("resource://gre/modules/NetUtil.sys.mjs"); - Zotero.Translate.DOMWrapper = new function () { var Cu = Components.utils; diff --git a/chrome/content/zotero/zotero-autocomplete.mjs b/chrome/content/zotero/zotero-autocomplete.mjs index 005065f105..3b8a5ca553 100644 --- a/chrome/content/zotero/zotero-autocomplete.mjs +++ b/chrome/content/zotero/zotero-autocomplete.mjs @@ -30,8 +30,6 @@ const Cc = Components.classes; const Ci = Components.interfaces; const Cr = Components.results; -ChromeUtils.importESModule("resource://gre/modules/ComponentUtils.sys.mjs"); - import { Zotero } from "chrome://zotero/content/zotero.mjs"; /*