aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/ext
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-20 18:42:49 +0800
committerobscuren <geffobscura@gmail.com>2014-08-20 18:42:49 +0800
commitfb49e5565ae7fe1d44180158aa982a96b7720fb5 (patch)
tree4ec1a12b486077fb79e00294e38c92167283f5c6 /ethereal/assets/ext
parent0eb1db0d179e07e9133e5d2d2df5efcbb68d9884 (diff)
downloadgo-tangerine-fb49e5565ae7fe1d44180158aa982a96b7720fb5.tar.gz
go-tangerine-fb49e5565ae7fe1d44180158aa982a96b7720fb5.tar.zst
go-tangerine-fb49e5565ae7fe1d44180158aa982a96b7720fb5.zip
Fixed minor issues with filtering
Diffstat (limited to 'ethereal/assets/ext')
-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) {