[Pkg-javascript-commits] [sockjs-client] 215/350: fix JSON references

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:04:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.

commit 2157b073e821ad90bf472f676b0fac97fed82e12
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Tue Oct 21 12:51:49 2014 -0400

    fix JSON references
---
 lib/main.js             | 2 +-
 lib/transport/iframe.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/main.js b/lib/main.js
index 156cfbf..3e0c53e 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -248,7 +248,7 @@ SockJS.prototype._transportMessage = function(msg) {
 
   if (content) {
     try {
-      payload = JSON.parse(content);
+      payload = JSON3.parse(content);
     } catch (e) {
       debug('bad json', content);
     }
diff --git a/lib/transport/iframe.js b/lib/transport/iframe.js
index 99b0ecb..8beb83f 100644
--- a/lib/transport/iframe.js
+++ b/lib/transport/iframe.js
@@ -104,7 +104,7 @@ IframeTransport.prototype._message = function(e) {
   case 'c':
     var cdata;
     try {
-      cdata = JSON.parse(iframeMessage.data);
+      cdata = JSON3.parse(iframeMessage.data);
     } catch (ignored) {
       debug('bad json', iframeMessage.data);
       return;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list