Allow the word plugin installer to be async

This commit is contained in:
Adomas Venčkauskas 2024-02-27 13:23:29 +02:00
parent 5f0e3d550b
commit 3b30c5821a

View file

@ -89,7 +89,8 @@ ZoteroPluginInstaller.prototype = {
"chrome,resizable=no,close=no,centerscreen", null);
this._progressWindow.addEventListener("load", () => { this._firstRunListener() }, false);
} else {
this._addon.install(this);
let result = this._addon.install(this);
if (result.then) await result;
}
}
} catch(e) {