mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
fx140: Use import statements in MJS files
This commit is contained in:
parent
c434ec40dd
commit
bb8a8a4362
6 changed files with 7 additions and 8 deletions
|
|
@ -24,9 +24,8 @@
|
|||
*/
|
||||
|
||||
|
||||
const { BlockingObserver } = ChromeUtils.importESModule("chrome://zotero/content/BlockingObserver.mjs");
|
||||
|
||||
ChromeUtils.importESModule("chrome://zotero/content/actors/ActorManager.mjs");
|
||||
import { BlockingObserver } from "chrome://zotero/content/BlockingObserver.mjs";
|
||||
import "chrome://zotero/content/actors/ActorManager.mjs";
|
||||
|
||||
/* global HiddenFrame, E10SUtils */
|
||||
ChromeUtils.defineESModuleGetters(globalThis, {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs");
|
||||
import { Zotero } from "chrome://zotero/content/zotero.mjs";
|
||||
|
||||
// Helper functions for citationDialog.js
|
||||
export class CitationDialogHelpers {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs");
|
||||
import { Zotero } from "chrome://zotero/content/zotero.mjs";
|
||||
|
||||
// Keyboard handler for citationDialog
|
||||
export class CitationDialogKeyboardHandler {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs");
|
||||
import { Zotero } from "chrome://zotero/content/zotero.mjs";
|
||||
|
||||
// Handle the logic of opening popups and saving/discarding edits to the citation items
|
||||
export class CitationDialogPopupsHandler {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs");
|
||||
import { Zotero } from "chrome://zotero/content/zotero.mjs";
|
||||
|
||||
const MIN_QUERY_LENGTH = 2;
|
||||
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ const xpcomFilesLocal = [
|
|||
'translation/translators',
|
||||
];
|
||||
|
||||
const { CommandLineOptions } = ChromeUtils.importESModule("chrome://zotero/content/modules/commandLineOptions.mjs");
|
||||
import { CommandLineOptions } from "chrome://zotero/content/modules/commandLineOptions.mjs";
|
||||
|
||||
var instanceID = (new Date()).getTime();
|
||||
var isFirstLoadThisSession = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue