aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/inpage-provider.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-11-24 02:48:20 +0800
committerkumavis <aaron@kumavis.me>2016-11-24 02:48:20 +0800
commitc0a2eb146a1fdbf37fa3c28a522c4b02d3896cc3 (patch)
treeb67b8c8c205766122004bfc5806310fd0f16003e /app/scripts/lib/inpage-provider.js
parent93bbe2c60d36bfda3cd1a3a510382724be640480 (diff)
downloadtangerine-wallet-browser-c0a2eb146a1fdbf37fa3c28a522c4b02d3896cc3.tar
tangerine-wallet-browser-c0a2eb146a1fdbf37fa3c28a522c4b02d3896cc3.tar.gz
tangerine-wallet-browser-c0a2eb146a1fdbf37fa3c28a522c4b02d3896cc3.tar.bz2
tangerine-wallet-browser-c0a2eb146a1fdbf37fa3c28a522c4b02d3896cc3.tar.lz
tangerine-wallet-browser-c0a2eb146a1fdbf37fa3c28a522c4b02d3896cc3.tar.xz
tangerine-wallet-browser-c0a2eb146a1fdbf37fa3c28a522c4b02d3896cc3.tar.zst
tangerine-wallet-browser-c0a2eb146a1fdbf37fa3c28a522c4b02d3896cc3.zip
rpc - add sync uninstallFilter support
Diffstat (limited to 'app/scripts/lib/inpage-provider.js')
-rw-r--r--app/scripts/lib/inpage-provider.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js
index f1ba2e0ed..71ac69ad1 100644
--- a/app/scripts/lib/inpage-provider.js
+++ b/app/scripts/lib/inpage-provider.js
@@ -82,6 +82,11 @@ MetamaskInpageProvider.prototype.send = function (payload) {
result = selectedAddress || '0x0000000000000000000000000000000000000000'
break
+ case 'eth_uninstallFilter':
+ self.sendAsync(payload, noop)
+ result = true
+ break
+
// throw not-supported Error
default:
var link = 'https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#dizzy-all-async---think-of-metamask-as-a-light-client'
@@ -127,3 +132,5 @@ function eachJsonMessage(payload, transformFn){
return transformFn(payload)
}
}
+
+function noop () {}