mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 993896 - Fire success / error to dom requests based on status received from gonk. r=allstars.chh
This commit is contained in:
parent
c87170c5cf
commit
f71172786b
@ -372,7 +372,11 @@ NfcContentHelper.prototype = {
|
||||
case "NFC:MakeReadOnlyNDEFResponse":
|
||||
case "NFC:CheckP2PRegistrationResponse":
|
||||
case "NFC:NotifySendFileStatusResponse":
|
||||
this.fireRequestSuccess(atob(result.requestId), result);
|
||||
if (result.status !== NFC.GECKO_NFC_ERROR_SUCCESS) {
|
||||
this.fireRequestError(atob(result.requestId), result.status);
|
||||
} else {
|
||||
this.fireRequestSuccess(atob(result.requestId), result);
|
||||
}
|
||||
break;
|
||||
case "NFC:PeerEvent":
|
||||
let callback = this.peerEventsCallbackMap[result.event];
|
||||
|
Loading…
Reference in New Issue
Block a user