fx140: Fix additional mendeleyImport.mjs imports

This commit is contained in:
Dan Stillman 2025-07-27 01:43:32 -04:00
parent b7c2002b63
commit c4cfee1807
3 changed files with 3 additions and 4 deletions

View file

@ -713,7 +713,7 @@ var Zotero_File_Interface = new function () {
let file = FileUtils.getDir("Home", []);
file = OS.Path.join(
file.path,
'zotero-client', 'chrome', 'content', 'zotero', 'import', 'mendeley', 'mendeleyImport.js'
'zotero-client', 'chrome', 'content', 'zotero', 'import', 'mendeley', 'mendeleyImport.mjs'
);
let fileURI = OS.Path.toFileURI(file);
({ Zotero_Import_Mendeley } = ChromeUtils.importESModule(fileURI));

View file

@ -3301,7 +3301,7 @@ Zotero.Schema = new function () {
}
else if (i == 101) {
Cu.import("chrome://zotero/content/import/mendeley/mendeleyImport.js");
let { Zotero_Import_Mendeley } = ChromeUtils.importESModule("chrome://zotero/content/import/mendeley/mendeleyImport.mjs");
let importer = new Zotero_Import_Mendeley();
if (await importer.hasImportedFiles()) {
await importer.queueFileCleanup();

View file

@ -1,6 +1,7 @@
/* global setHTTPResponse:false, sinon: false, Zotero_Import_Mendeley: false, HttpServer: false, createAnnotation: false */
describe('Zotero_Import_Mendeley', function () {
var { Zotero_Import_Mendeley } = ChromeUtils.importESModule("chrome://zotero/content/import/mendeley/mendeleyImport.mjs");
var server, httpd, httpdURL, importers;
const getImporter = ({ importNotes = false } = {}) => {
@ -20,8 +21,6 @@ describe('Zotero_Import_Mendeley', function () {
};
before(async () => {
Cu.import('chrome://zotero/content/import/mendeley/mendeleyImport.js');
// A real HTTP server is used to deliver a Bitcoin PDF so that annotations can be processed during import.
var { HttpServer } = ChromeUtils.importESModule("chrome://remote/content/server/httpd.sys.mjs");;
const port = 16213;