mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
ChromeUtils.import() shim: Be explicit
This commit is contained in:
parent
a639e74b7c
commit
c43320d8dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue