Zotero.Plugins.getResourceURI()getRootURI()

To go with the `rootURI` string variable passed to bootstrap methods
This commit is contained in:
Dan Stillman 2022-09-20 00:38:06 -04:00
parent acc4d2a81b
commit 542a6adf84

View file

@ -168,7 +168,7 @@ Zotero.Plugins = new function () {
} }
this.getResourceURI = async function (id) { this.getRootURI = async function (id) {
var addon = await AddonManager.getAddonByID(id); var addon = await AddonManager.getAddonByID(id);
return addon.getResourceURI().spec; return addon.getResourceURI().spec;
}; };