From fb49e5565ae7fe1d44180158aa982a96b7720fb5 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 20 Aug 2014 12:42:49 +0200 Subject: Fixed minor issues with filtering --- ethereal/assets/ext/filter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ethereal/assets/ext') 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) { -- cgit v1.2.3