Skip to content

Commit f1776e0

Browse files
committed
Support non-JSON values
Related to #60 and kolodny/jsan#1
1 parent 09e43c0 commit f1776e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"dependencies": {
5656
"crossmessaging": "^0.2.0",
57-
"jsan": "^2.0.4",
57+
"jsan": "^3.0.0",
5858
"react": "^0.14.6",
5959
"react-dom": "^0.14.6",
6060
"react-icons": "^1.0.3",

src/browser/extension/inject/pageScript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ window.devToolsExtension = function(config = {}) {
1212
let errorOccurred = false;
1313

1414
function relaySerialized(message) {
15-
message.payload = stringify(message.payload);
16-
if (message.action !== '') message.action = stringify(message.action);
15+
message.payload = stringify(message.payload, null, null, true);
16+
if (message.action !== '') message.action = stringify(message.action, null, null, true);
1717
window.postMessage(message, '*');
1818
}
1919

0 commit comments

Comments
 (0)