From c43320d8dd5ec8a5741b588aad4da952cbc54c03 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 1 Jul 2025 17:07:51 -0400 Subject: [PATCH] ChromeUtils.import() shim: Be explicit --- chrome/content/zotero/xpcom/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/plugins.js b/chrome/content/zotero/xpcom/plugins.js index 037654f431..f9e87a888f 100644 --- a/chrome/content/zotero/xpcom/plugins.js +++ b/chrome/content/zotero/xpcom/plugins.js @@ -181,7 +181,7 @@ Zotero.Plugins = new function () { if (property === 'import') { return function (uri) { let esmURI = uri.replace('.jsm', uri.includes('/zotero/') ? '.mjs' : '.sys.mjs'); - Zotero.warn('ChromeUtils.import() is deprecated. Use importESModule():\n' + Zotero.warn('ChromeUtils.import() has been removed. Use importESModule():\n' + ` ChromeUtils.importESModule("${esmURI}");`); return receiver.importESModule(esmURI); };