aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/assets')
-rw-r--r--ethereal/assets/ext/filter.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ethereal/assets/ext/filter.js b/ethereal/assets/ext/filter.js
index 7af6f56e7..5c1c03aad 100644
--- a/ethereal/assets/ext/filter.js
+++ b/ethereal/assets/ext/filter.js
@@ -3,7 +3,11 @@ var Filter = function(options) {
this.seed = Math.floor(Math.random() * 1000000);
this.options = options;
- eth.registerFilter(options, this.seed);
+ if(options == "chain") {
+ eth.registerFilterString(options, this.seed);
+ } else if(typeof options === "object") {
+ eth.registerFilter(options, this.seed);
+ }
};
Filter.prototype.changed = function(callback) {