diff options
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -131,11 +131,11 @@ }).then(function (request) { return new Promise(function (resolve, reject) { web3.provider.send(request, function (result) { - if (result) { + if (result || typeof result === "boolean") { resolve(result); - } else { - reject(result); - } + return; + } + reject(result); }); }); }).catch(function( err) { @@ -373,6 +373,10 @@ }); }; + Filter.prototype.arrived = function(callback) { + this.changed(callback); + } + Filter.prototype.changed = function(callback) { var self = this; this.promise.then(function(id) { |