[WebExAM] Use proper application name in WebExtension API error message.

This commit is contained in:
wolfbeast 2019-01-14 23:00:32 +01:00 committed by Roy Tam
commit 19f9451de0

View file

@ -990,7 +990,8 @@ function findPathInObject(obj, path, printErrors = true) {
for (let elt of path.split(".")) {
if (!obj || !(elt in obj)) {
if (printErrors) {
Cu.reportError(`WebExtension API ${path} not found (it may be unimplemented by Firefox).`);
let appname = Services.appinfo.name;
Cu.reportError(`WebExtension API ${path} not found (it may be unimplemented by ${appname}).`);
}
return null;
}