mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
[WebExAM] Use proper application name in WebExtension API error message.
This commit is contained in:
parent
a8a28d4537
commit
19f9451de0
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue