aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'main.js')
-rw-r--r--main.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/main.js b/main.js
index 32064ce26..cc85b9850 100644
--- a/main.js
+++ b/main.js
@@ -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) {