Skip to content

Commit

Permalink
Support non-JSON values
Browse files Browse the repository at this point in the history
Related to #60 and kolodny/jsan#1
  • Loading branch information
zalmoxisus committed Mar 1, 2016
1 parent 09e43c0 commit f1776e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
"dependencies": {
"crossmessaging": "^0.2.0",
"jsan": "^2.0.4",
"jsan": "^3.0.0",
"react": "^0.14.6",
"react-dom": "^0.14.6",
"react-icons": "^1.0.3",
Expand Down
4 changes: 2 additions & 2 deletions src/browser/extension/inject/pageScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ window.devToolsExtension = function(config = {}) {
let errorOccurred = false;

function relaySerialized(message) {
message.payload = stringify(message.payload);
if (message.action !== '') message.action = stringify(message.action);
message.payload = stringify(message.payload, null, null, true);
if (message.action !== '') message.action = stringify(message.action, null, null, true);
window.postMessage(message, '*');
}

Expand Down

0 comments on commit f1776e0

Please sign in to comment.