Skip to content

Commit 5e1efce

Browse files
committed
Show response correctly
1 parent 0af37ef commit 5e1efce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

background.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ async function setDefaultPath() {
234234
try {
235235
let response = await send({ command: 'get-ie-path' });
236236
if (response) {
237-
log('Received: ', response);
237+
log('Received: ', JSON.stringify(response));
238238
if (response.path)
239239
configs.ieapp = response.path;
240240
}
@@ -324,7 +324,7 @@ async function launch(aURL) {
324324
};
325325
try{
326326
let response = await send(message);
327-
log('Received: ', response);
327+
log('Received: ', JSON.stringify(response));
328328
}
329329
catch(aError) {
330330
log('Error: ', aError);
@@ -338,6 +338,6 @@ function send(aMessage) {
338338
aMessage.debug = true;
339339
aMessage.logRotationCount = configs.logRotationCount;
340340
aMessage.logRotationTime = configs.logRotationTime;
341-
log('Sending: ', aMessage);
341+
log('Sending: ', JSON.stringify(aMessage));
342342
return browser.runtime.sendNativeMessage('com.clear_code.ieview_we_host', aMessage);
343343
}

0 commit comments

Comments
 (0)