diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-30 00:14:59 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-30 00:14:59 +0800 |
commit | cb607b4911711501a8e70db0fe2148c51272c719 (patch) | |
tree | 066a6280876d2c6c05788989d1f0610be37b4b46 /httprpc.js | |
parent | 31c6159019d330d27c086343257902c97de3a8ae (diff) | |
download | dexon-cb607b4911711501a8e70db0fe2148c51272c719.tar dexon-cb607b4911711501a8e70db0fe2148c51272c719.tar.gz dexon-cb607b4911711501a8e70db0fe2148c51272c719.tar.bz2 dexon-cb607b4911711501a8e70db0fe2148c51272c719.tar.lz dexon-cb607b4911711501a8e70db0fe2148c51272c719.tar.xz dexon-cb607b4911711501a8e70db0fe2148c51272c719.tar.zst dexon-cb607b4911711501a8e70db0fe2148c51272c719.zip |
changes to make whisper working
Diffstat (limited to 'httprpc.js')
-rw-r--r-- | httprpc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/httprpc.js b/httprpc.js index 8e3c74b8b..085b4693d 100644 --- a/httprpc.js +++ b/httprpc.js @@ -48,7 +48,7 @@ var self = this; this.sendRequest(payload, function (request) { var parsed = JSON.parse(request.responseText); - if (!parsed.result) { + if (parsed.result instanceof Array ? parsed.result.length === 0 : !parsed.result) { return; } self.handlers.forEach(function (handler) { |