|
@@ -26,6 +26,13 @@ export default class MessageHandler {
|
|
if (data.callback === 'resolve') {
|
|
if (data.callback === 'resolve') {
|
|
capability.resolve(data.data);
|
|
capability.resolve(data.data);
|
|
} else {
|
|
} else {
|
|
|
|
+ console.log({
|
|
|
|
+ data: {
|
|
|
|
+ action: data.data.action,
|
|
|
|
+ data: data.data.data
|
|
|
|
+ },
|
|
|
|
+ message: data.reason && data.reason.message
|
|
|
|
+ })
|
|
throw new Error("Unexpected callback case");
|
|
throw new Error("Unexpected callback case");
|
|
}
|
|
}
|
|
return;
|
|
return;
|