mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
Use ESMified word processor plugin installers
This commit is contained in:
parent
e0cc806383
commit
7a12db481c
1 changed files with 4 additions and 3 deletions
|
|
@ -54,9 +54,10 @@ Zotero_Preferences.Cite = {
|
|||
for (let wordPlugin of wordPlugins) {
|
||||
// This is the weirdest indirect code, but let's not fix what's not broken
|
||||
try {
|
||||
var installer = Components.utils.import(`resource://${this.wordPluginResourcePaths[wordPlugin]}/installer.jsm`).Installer;
|
||||
(new installer(true)).showPreferences(document);
|
||||
} catch(e) {
|
||||
const { Installer } = ChromeUtils.importESModule(`resource://${this.wordPluginResourcePaths[wordPlugin]}/installer.mjs`);
|
||||
(new Installer(true)).showPreferences(document);
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.logError(e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue