diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-20 18:42:49 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-20 18:42:49 +0800 |
commit | fb49e5565ae7fe1d44180158aa982a96b7720fb5 (patch) | |
tree | 4ec1a12b486077fb79e00294e38c92167283f5c6 /ethereal/assets | |
parent | 0eb1db0d179e07e9133e5d2d2df5efcbb68d9884 (diff) | |
download | dexon-fb49e5565ae7fe1d44180158aa982a96b7720fb5.tar.gz dexon-fb49e5565ae7fe1d44180158aa982a96b7720fb5.tar.zst dexon-fb49e5565ae7fe1d44180158aa982a96b7720fb5.zip |
Fixed minor issues with filtering
Diffstat (limited to 'ethereal/assets')
-rw-r--r-- | ethereal/assets/ext/filter.js | 6 |
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) { |