mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
Fix other bare imports in utilities_internal.js
This commit is contained in:
parent
3dea9429bd
commit
d911981e84
1 changed files with 2 additions and 2 deletions
|
|
@ -280,7 +280,7 @@ Zotero.Utilities.Internal = {
|
|||
gunzip: async function (data) {
|
||||
var deferred = Zotero.Promise.defer();
|
||||
|
||||
ChromeUtils.importESModule("resource://gre/modules/NetUtil.sys.mjs");
|
||||
const { NetUtil } = ChromeUtils.importESModule("resource://gre/modules/NetUtil.sys.mjs");
|
||||
|
||||
var is = Components.classes["@mozilla.org/io/string-input-stream;1"]
|
||||
.createInstance(Ci.nsIStringInputStream);
|
||||
|
|
@ -581,7 +581,7 @@ Zotero.Utilities.Internal = {
|
|||
*/
|
||||
exec: function (cmd, args) {
|
||||
if (typeof cmd == 'string') {
|
||||
ChromeUtils.importESModule("resource://gre/modules/FileUtils.sys.mjs");
|
||||
const { FileUtils } = ChromeUtils.importESModule("resource://gre/modules/FileUtils.sys.mjs");
|
||||
cmd = new FileUtils.File(cmd);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue