From 91cd849e76d81ebbb984a007979b0566e13a86c2 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 3 Jul 2017 13:48:18 -0700 Subject: Began creating new UI template --- app/scripts/background.js | 3 ++- app/scripts/send-token.js | 33 +++++++++++++++++++++++++++++++++ app/send-token.html | 11 +++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 app/scripts/send-token.js create mode 100644 app/send-token.html (limited to 'app') diff --git a/app/scripts/background.js b/app/scripts/background.js index e8987394f..7e8f9172f 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -90,7 +90,8 @@ function setupController (initState) { extension.runtime.onConnect.addListener(connectRemote) function connectRemote (remotePort) { - var isMetaMaskInternalProcess = remotePort.name === 'popup' || remotePort.name === 'notification' + const name = remotePort.name + var isMetaMaskInternalProcess = name === 'popup' || name === 'notification' || name === 'ui' var portStream = new PortStream(remotePort) if (isMetaMaskInternalProcess) { // communication with popup diff --git a/app/scripts/send-token.js b/app/scripts/send-token.js new file mode 100644 index 000000000..9e6868884 --- /dev/null +++ b/app/scripts/send-token.js @@ -0,0 +1,33 @@ +const startPopup = require('./popup-core') +const PortStream = require('./lib/port-stream.js') +const ExtensionPlatform = require('./platforms/extension') +const extension = require('extensionizer') +const NotificationManager = require('./lib/notification-manager') +const notificationManager = new NotificationManager() + +// create platform global +global.platform = new ExtensionPlatform() + +// inject css +const css = MetaMaskUiCss() +injectCss(css) + +// setup stream to background +const extensionPort = extension.runtime.connect({ name: 'ui' }) +const connectionStream = new PortStream(extensionPort) + +// start ui +const container = document.getElementById('app-content') +startPopup({ container, connectionStream }, (err, store) => { + if (err) return displayCriticalError(err) + store.subscribe(() => { + const state = store.getState() + }) +}) + +function displayCriticalError (err) { + container.innerHTML = '
The MetaMask app failed to load: please open and close MetaMask again to restart.
' + container.style.height = '80px' + log.error(err.stack) + throw err +} diff --git a/app/send-token.html b/app/send-token.html new file mode 100644 index 000000000..5f98e1072 --- /dev/null +++ b/app/send-token.html @@ -0,0 +1,11 @@ + + + + + MetaMask Plugin + + +
+ + + -- cgit v1.2.3 From 5eb3d5d485b17b98b19443d8def2f03dec9b38ef Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 3 Jul 2017 15:39:25 -0700 Subject: Make folder for responsive UI --- app/home.html | 11 +++++++++ app/scripts/popup-core.js | 2 +- app/scripts/responsive-core.js | 54 ++++++++++++++++++++++++++++++++++++++++++ app/scripts/responsive.js | 33 ++++++++++++++++++++++++++ app/scripts/send-token.js | 33 -------------------------- app/send-token.html | 11 --------- 6 files changed, 99 insertions(+), 45 deletions(-) create mode 100644 app/home.html create mode 100644 app/scripts/responsive-core.js create mode 100644 app/scripts/responsive.js delete mode 100644 app/scripts/send-token.js delete mode 100644 app/send-token.html (limited to 'app') diff --git a/app/home.html b/app/home.html new file mode 100644 index 000000000..b7b8adbeb --- /dev/null +++ b/app/home.html @@ -0,0 +1,11 @@ + + + + + MetaMask Plugin + + +
+ + + diff --git a/app/scripts/popup-core.js b/app/scripts/popup-core.js index f1eb394d7..156be795a 100644 --- a/app/scripts/popup-core.js +++ b/app/scripts/popup-core.js @@ -2,7 +2,7 @@ const EventEmitter = require('events').EventEmitter const async = require('async') const Dnode = require('dnode') const EthQuery = require('eth-query') -const launchMetamaskUi = require('../../ui') +const launchMetamaskUi = require('../../ui/classic') const StreamProvider = require('web3-stream-provider') const setupMultiplex = require('./lib/stream-utils.js').setupMultiplex diff --git a/app/scripts/responsive-core.js b/app/scripts/responsive-core.js new file mode 100644 index 000000000..3760facfa --- /dev/null +++ b/app/scripts/responsive-core.js @@ -0,0 +1,54 @@ +const EventEmitter = require('events').EventEmitter +const async = require('async') +const Dnode = require('dnode') +const EthQuery = require('eth-query') +const launchMetamaskUi = require('../../ui/responsive') +const StreamProvider = require('web3-stream-provider') +const setupMultiplex = require('./lib/stream-utils.js').setupMultiplex + + +module.exports = initializePopup + + +function initializePopup ({ container, connectionStream }, cb) { + // setup app + async.waterfall([ + (cb) => connectToAccountManager(connectionStream, cb), + (accountManager, cb) => launchMetamaskUi({ container, accountManager }, cb), + ], cb) +} + +function connectToAccountManager (connectionStream, cb) { + // setup communication with background + // setup multiplexing + var mx = setupMultiplex(connectionStream) + // connect features + setupControllerConnection(mx.createStream('controller'), cb) + setupWeb3Connection(mx.createStream('provider')) +} + +function setupWeb3Connection (connectionStream) { + var providerStream = new StreamProvider() + providerStream.pipe(connectionStream).pipe(providerStream) + connectionStream.on('error', console.error.bind(console)) + providerStream.on('error', console.error.bind(console)) + global.ethereumProvider = providerStream + global.ethQuery = new EthQuery(providerStream) +} + +function setupControllerConnection (connectionStream, cb) { + // this is a really sneaky way of adding EventEmitter api + // to a bi-directional dnode instance + var eventEmitter = new EventEmitter() + var accountManagerDnode = Dnode({ + sendUpdate: function (state) { + eventEmitter.emit('update', state) + }, + }) + connectionStream.pipe(accountManagerDnode).pipe(connectionStream) + accountManagerDnode.once('remote', function (accountManager) { + // setup push events + accountManager.on = eventEmitter.on.bind(eventEmitter) + cb(null, accountManager) + }) +} diff --git a/app/scripts/responsive.js b/app/scripts/responsive.js new file mode 100644 index 000000000..512065309 --- /dev/null +++ b/app/scripts/responsive.js @@ -0,0 +1,33 @@ +const startPopup = require('./responsive-core') +const PortStream = require('./lib/port-stream.js') +const ExtensionPlatform = require('./platforms/extension') +const extension = require('extensionizer') +const NotificationManager = require('./lib/notification-manager') +const notificationManager = new NotificationManager() + +// create platform global +global.platform = new ExtensionPlatform() + +// inject css +const css = MetaMaskUiCss() +injectCss(css) + +// setup stream to background +const extensionPort = extension.runtime.connect({ name: 'ui' }) +const connectionStream = new PortStream(extensionPort) + +// start ui +const container = document.getElementById('app-content') +startPopup({ container, connectionStream }, (err, store) => { + if (err) return displayCriticalError(err) + store.subscribe(() => { + const state = store.getState() + }) +}) + +function displayCriticalError (err) { + container.innerHTML = '
The MetaMask app failed to load: please open and close MetaMask again to restart.
' + container.style.height = '80px' + log.error(err.stack) + throw err +} diff --git a/app/scripts/send-token.js b/app/scripts/send-token.js deleted file mode 100644 index 9e6868884..000000000 --- a/app/scripts/send-token.js +++ /dev/null @@ -1,33 +0,0 @@ -const startPopup = require('./popup-core') -const PortStream = require('./lib/port-stream.js') -const ExtensionPlatform = require('./platforms/extension') -const extension = require('extensionizer') -const NotificationManager = require('./lib/notification-manager') -const notificationManager = new NotificationManager() - -// create platform global -global.platform = new ExtensionPlatform() - -// inject css -const css = MetaMaskUiCss() -injectCss(css) - -// setup stream to background -const extensionPort = extension.runtime.connect({ name: 'ui' }) -const connectionStream = new PortStream(extensionPort) - -// start ui -const container = document.getElementById('app-content') -startPopup({ container, connectionStream }, (err, store) => { - if (err) return displayCriticalError(err) - store.subscribe(() => { - const state = store.getState() - }) -}) - -function displayCriticalError (err) { - container.innerHTML = '
The MetaMask app failed to load: please open and close MetaMask again to restart.
' - container.style.height = '80px' - log.error(err.stack) - throw err -} diff --git a/app/send-token.html b/app/send-token.html deleted file mode 100644 index 5f98e1072..000000000 --- a/app/send-token.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - MetaMask Plugin - - -
- - - -- cgit v1.2.3 From e285f2cae958437160f86171f1fccfec66799883 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 3 Jul 2017 16:09:17 -0700 Subject: Get duplicate UI template working --- app/scripts/popup.js | 2 +- app/scripts/responsive.js | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'app') diff --git a/app/scripts/popup.js b/app/scripts/popup.js index 5f17f0651..13b98d1f6 100644 --- a/app/scripts/popup.js +++ b/app/scripts/popup.js @@ -1,5 +1,5 @@ const injectCss = require('inject-css') -const MetaMaskUiCss = require('../../ui/css') +const MetaMaskUiCss = require('../../ui/classic/css') const startPopup = require('./popup-core') const PortStream = require('./lib/port-stream.js') const isPopupOrNotification = require('./lib/is-popup-or-notification') diff --git a/app/scripts/responsive.js b/app/scripts/responsive.js index 512065309..0ff42a4cb 100644 --- a/app/scripts/responsive.js +++ b/app/scripts/responsive.js @@ -1,9 +1,9 @@ +const injectCss = require('inject-css') const startPopup = require('./responsive-core') +const MetaMaskUiCss = require('../../ui/responsive/css') const PortStream = require('./lib/port-stream.js') const ExtensionPlatform = require('./platforms/extension') const extension = require('extensionizer') -const NotificationManager = require('./lib/notification-manager') -const notificationManager = new NotificationManager() // create platform global global.platform = new ExtensionPlatform() @@ -20,9 +20,6 @@ const connectionStream = new PortStream(extensionPort) const container = document.getElementById('app-content') startPopup({ container, connectionStream }, (err, store) => { if (err) return displayCriticalError(err) - store.subscribe(() => { - const state = store.getState() - }) }) function displayCriticalError (err) { -- cgit v1.2.3 From 86d367957fe8ac04462f716fe0ba2bfa4e5ff3f6 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 20 Jul 2017 12:38:38 -0700 Subject: Move responsive ui into its own folder for easier merges --- app/scripts/popup-core.js | 2 +- app/scripts/popup.js | 2 +- app/scripts/responsive-core.js | 2 +- app/scripts/responsive.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/scripts/popup-core.js b/app/scripts/popup-core.js index 156be795a..f1eb394d7 100644 --- a/app/scripts/popup-core.js +++ b/app/scripts/popup-core.js @@ -2,7 +2,7 @@ const EventEmitter = require('events').EventEmitter const async = require('async') const Dnode = require('dnode') const EthQuery = require('eth-query') -const launchMetamaskUi = require('../../ui/classic') +const launchMetamaskUi = require('../../ui') const StreamProvider = require('web3-stream-provider') const setupMultiplex = require('./lib/stream-utils.js').setupMultiplex diff --git a/app/scripts/popup.js b/app/scripts/popup.js index 13b98d1f6..5f17f0651 100644 --- a/app/scripts/popup.js +++ b/app/scripts/popup.js @@ -1,5 +1,5 @@ const injectCss = require('inject-css') -const MetaMaskUiCss = require('../../ui/classic/css') +const MetaMaskUiCss = require('../../ui/css') const startPopup = require('./popup-core') const PortStream = require('./lib/port-stream.js') const isPopupOrNotification = require('./lib/is-popup-or-notification') diff --git a/app/scripts/responsive-core.js b/app/scripts/responsive-core.js index 3760facfa..c3fa6700d 100644 --- a/app/scripts/responsive-core.js +++ b/app/scripts/responsive-core.js @@ -2,7 +2,7 @@ const EventEmitter = require('events').EventEmitter const async = require('async') const Dnode = require('dnode') const EthQuery = require('eth-query') -const launchMetamaskUi = require('../../ui/responsive') +const launchMetamaskUi = require('../../responsive-ui') const StreamProvider = require('web3-stream-provider') const setupMultiplex = require('./lib/stream-utils.js').setupMultiplex diff --git a/app/scripts/responsive.js b/app/scripts/responsive.js index 0ff42a4cb..6525b833b 100644 --- a/app/scripts/responsive.js +++ b/app/scripts/responsive.js @@ -1,6 +1,6 @@ const injectCss = require('inject-css') const startPopup = require('./responsive-core') -const MetaMaskUiCss = require('../../ui/responsive/css') +const MetaMaskUiCss = require('../../responsive-ui/css') const PortStream = require('./lib/port-stream.js') const ExtensionPlatform = require('./platforms/extension') const extension = require('extensionizer') -- cgit v1.2.3 From a22adec66fd0c541eb350ea424a6b00d179eedaf Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 24 Jul 2017 17:04:13 -0700 Subject: Replace ui with responsive-ui --- app/home.html | 11 --------- app/scripts/responsive-core.js | 54 ------------------------------------------ app/scripts/responsive.js | 30 ----------------------- 3 files changed, 95 deletions(-) delete mode 100644 app/home.html delete mode 100644 app/scripts/responsive-core.js delete mode 100644 app/scripts/responsive.js (limited to 'app') diff --git a/app/home.html b/app/home.html deleted file mode 100644 index b7b8adbeb..000000000 --- a/app/home.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - MetaMask Plugin - - -
- - - diff --git a/app/scripts/responsive-core.js b/app/scripts/responsive-core.js deleted file mode 100644 index c3fa6700d..000000000 --- a/app/scripts/responsive-core.js +++ /dev/null @@ -1,54 +0,0 @@ -const EventEmitter = require('events').EventEmitter -const async = require('async') -const Dnode = require('dnode') -const EthQuery = require('eth-query') -const launchMetamaskUi = require('../../responsive-ui') -const StreamProvider = require('web3-stream-provider') -const setupMultiplex = require('./lib/stream-utils.js').setupMultiplex - - -module.exports = initializePopup - - -function initializePopup ({ container, connectionStream }, cb) { - // setup app - async.waterfall([ - (cb) => connectToAccountManager(connectionStream, cb), - (accountManager, cb) => launchMetamaskUi({ container, accountManager }, cb), - ], cb) -} - -function connectToAccountManager (connectionStream, cb) { - // setup communication with background - // setup multiplexing - var mx = setupMultiplex(connectionStream) - // connect features - setupControllerConnection(mx.createStream('controller'), cb) - setupWeb3Connection(mx.createStream('provider')) -} - -function setupWeb3Connection (connectionStream) { - var providerStream = new StreamProvider() - providerStream.pipe(connectionStream).pipe(providerStream) - connectionStream.on('error', console.error.bind(console)) - providerStream.on('error', console.error.bind(console)) - global.ethereumProvider = providerStream - global.ethQuery = new EthQuery(providerStream) -} - -function setupControllerConnection (connectionStream, cb) { - // this is a really sneaky way of adding EventEmitter api - // to a bi-directional dnode instance - var eventEmitter = new EventEmitter() - var accountManagerDnode = Dnode({ - sendUpdate: function (state) { - eventEmitter.emit('update', state) - }, - }) - connectionStream.pipe(accountManagerDnode).pipe(connectionStream) - accountManagerDnode.once('remote', function (accountManager) { - // setup push events - accountManager.on = eventEmitter.on.bind(eventEmitter) - cb(null, accountManager) - }) -} diff --git a/app/scripts/responsive.js b/app/scripts/responsive.js deleted file mode 100644 index 6525b833b..000000000 --- a/app/scripts/responsive.js +++ /dev/null @@ -1,30 +0,0 @@ -const injectCss = require('inject-css') -const startPopup = require('./responsive-core') -const MetaMaskUiCss = require('../../responsive-ui/css') -const PortStream = require('./lib/port-stream.js') -const ExtensionPlatform = require('./platforms/extension') -const extension = require('extensionizer') - -// create platform global -global.platform = new ExtensionPlatform() - -// inject css -const css = MetaMaskUiCss() -injectCss(css) - -// setup stream to background -const extensionPort = extension.runtime.connect({ name: 'ui' }) -const connectionStream = new PortStream(extensionPort) - -// start ui -const container = document.getElementById('app-content') -startPopup({ container, connectionStream }, (err, store) => { - if (err) return displayCriticalError(err) -}) - -function displayCriticalError (err) { - container.innerHTML = '
The MetaMask app failed to load: please open and close MetaMask again to restart.
' - container.style.height = '80px' - log.error(err.stack) - throw err -} -- cgit v1.2.3 From 8fc0a025f62722e9cced11e22600e0093e64e4f5 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Wed, 26 Jul 2017 14:36:22 -0700 Subject: Set initial scale for mobile. --- app/popup.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/popup.html b/app/popup.html index 6d85a9811..2504a2512 100644 --- a/app/popup.html +++ b/app/popup.html @@ -2,10 +2,11 @@ + MetaMask Plugin
- \ No newline at end of file + -- cgit v1.2.3 From 8e2da52e641ac625bf09efbec804e65e0fc0c753 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Wed, 26 Jul 2017 14:37:26 -0700 Subject: Adjust mobile scale for smaller devices --- app/popup.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/popup.html b/app/popup.html index 2504a2512..a8f213d53 100644 --- a/app/popup.html +++ b/app/popup.html @@ -2,7 +2,7 @@ - + MetaMask Plugin -- cgit v1.2.3 From 65bd178b647ae4938e240ba5b070d7ea30a179cc Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 27 Jul 2017 14:32:18 -0700 Subject: Fix viewport width to 1 --- app/popup.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/popup.html b/app/popup.html index a8f213d53..b2fcc09d8 100644 --- a/app/popup.html +++ b/app/popup.html @@ -2,7 +2,7 @@ - + MetaMask Plugin -- cgit v1.2.3 From f795f30a67619093e8c0756ca7e3446786fe6e6d Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 27 Jul 2017 14:37:27 -0700 Subject: Disable user zoom in mobile mode --- app/popup.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/popup.html b/app/popup.html index b2fcc09d8..eeca58331 100644 --- a/app/popup.html +++ b/app/popup.html @@ -2,7 +2,7 @@ - + MetaMask Plugin -- cgit v1.2.3 From 9ac0a18f3b345bb8236febe626d3b6f6bed75ae3 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 27 Jul 2017 18:43:18 -0700 Subject: Correct viewport param --- app/popup.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/popup.html b/app/popup.html index eeca58331..cfb4b00a0 100644 --- a/app/popup.html +++ b/app/popup.html @@ -2,7 +2,7 @@ - + MetaMask Plugin -- cgit v1.2.3 From 651fec5112ee77eed995db80621d2ae6e799e8cf Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Fri, 28 Jul 2017 11:06:39 -0700 Subject: Create distinct responsive 'home.html' file, hard-code popup.html size Because firefox was having inconsistent sizing, made a second html file for forcing the view to a certain size. Still allows us to develop a responsive interface via the `home.html` file, which shares all the same react JS & CSS as popup.html. --- app/home.html | 12 ++++++++++++ app/popup.html | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 app/home.html (limited to 'app') diff --git a/app/home.html b/app/home.html new file mode 100644 index 000000000..cfb4b00a0 --- /dev/null +++ b/app/home.html @@ -0,0 +1,12 @@ + + + + + + MetaMask Plugin + + +
+ + + diff --git a/app/popup.html b/app/popup.html index cfb4b00a0..d09b09315 100644 --- a/app/popup.html +++ b/app/popup.html @@ -5,7 +5,7 @@ MetaMask Plugin - +
-- cgit v1.2.3 From 10c6aeb2f8da24cb31f50de638aaa62acfbb7fca Mon Sep 17 00:00:00 2001 From: kumavis Date: Thu, 3 Aug 2017 17:01:09 -0700 Subject: v3.9.3 --- app/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/manifest.json b/app/manifest.json index 1eaf6f26a..6c02120c1 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,7 +1,7 @@ { "name": "MetaMask", "short_name": "Metamask", - "version": "3.9.2", + "version": "3.9.3", "manifest_version": 2, "author": "https://metamask.io", "description": "Ethereum Browser Extension", -- cgit v1.2.3 From 7de58c8709dd78e7088210e2c6bc5df79e008538 Mon Sep 17 00:00:00 2001 From: frankiebee Date: Thu, 3 Aug 2017 21:20:01 -0400 Subject: fix cancelTransaction not reciving a callback --- app/scripts/lib/nodeify.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/scripts/lib/nodeify.js b/app/scripts/lib/nodeify.js index 299bfe624..832d6c6d3 100644 --- a/app/scripts/lib/nodeify.js +++ b/app/scripts/lib/nodeify.js @@ -1,9 +1,10 @@ const promiseToCallback = require('promise-to-callback') -module.exports = function(fn, context) { +module.exports = function nodeify (fn, context) { return function(){ const args = [].slice.call(arguments) const callback = args.pop() + if (typeof callback !== 'function') throw new Error('callback is not a function') promiseToCallback(fn.apply(context, args))(callback) } } -- cgit v1.2.3 From a444326a1e5329b0d3a9664df80db0d3533f6e38 Mon Sep 17 00:00:00 2001 From: kumavis Date: Thu, 3 Aug 2017 22:06:26 -0700 Subject: v3.9.4 --- app/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/manifest.json b/app/manifest.json index 6c02120c1..d5e1937fa 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,7 +1,7 @@ { "name": "MetaMask", "short_name": "Metamask", - "version": "3.9.3", + "version": "3.9.4", "manifest_version": 2, "author": "https://metamask.io", "description": "Ethereum Browser Extension", -- cgit v1.2.3 From 1be8053ccab7680ef5d7f935d2658544dbe55128 Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 4 Aug 2017 13:51:48 -0700 Subject: blacklist - update phishing on boot and speed up polling to 4 min --- app/scripts/controllers/blacklist.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/scripts/controllers/blacklist.js b/app/scripts/controllers/blacklist.js index 7e01fa386..dd671943f 100644 --- a/app/scripts/controllers/blacklist.js +++ b/app/scripts/controllers/blacklist.js @@ -4,8 +4,8 @@ const PhishingDetector = require('eth-phishing-detect/src/detector') // compute phishing lists const PHISHING_DETECTION_CONFIG = require('eth-phishing-detect/src/config.json') -// every ten minutes -const POLLING_INTERVAL = 10 * 60 * 1000 +// every four minutes +const POLLING_INTERVAL = 4 * 60 * 1000 class BlacklistController { @@ -41,6 +41,7 @@ class BlacklistController { scheduleUpdates () { if (this._phishingUpdateIntervalRef) return + this.updatePhishingList() this._phishingUpdateIntervalRef = setInterval(() => { this.updatePhishingList() }, POLLING_INTERVAL) -- cgit v1.2.3 From c82908e843b5d4760c84e0628f6a7d5caeae467a Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 4 Aug 2017 14:16:19 -0700 Subject: v3.9.5 --- app/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/manifest.json b/app/manifest.json index d5e1937fa..3b9194eb9 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,7 +1,7 @@ { "name": "MetaMask", "short_name": "Metamask", - "version": "3.9.4", + "version": "3.9.5", "manifest_version": 2, "author": "https://metamask.io", "description": "Ethereum Browser Extension", -- cgit v1.2.3