in src/firefox/remote.js [128:148]
async getInstalledAddon(addonId) {
try {
const response = await this.client.request('listAddons');
for (const addon of response.addons) {
if (addon.id === addonId) {
return addon;
}
}
log.debug(
`Remote Firefox has these addons: ${response.addons.map((a) => a.id)}`,
);
return Promise.reject(
new WebExtError(
'The remote Firefox does not have your extension installed',
),
);
} catch (err) {
const message = requestErrorToMessage(err);
throw new WebExtError(`Remote Firefox: listAddons() error: ${message}`);
}
}