diff options
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r-- | app/scripts/background.js | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index adde3a87f..652acc113 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -8,10 +8,6 @@ const messageManager = require('./lib/message-manager') const setupMultiplex = require('./lib/stream-utils.js').setupMultiplex const MetamaskController = require('./metamask-controller') const extension = require('./lib/extension') -const fs = require('fs') -const path = require('path') -const disclaimer = fs.readFileSync(path.join(__dirname, '..', '..', 'USER_AGREEMENT.md')).toString() -const stringHash = require('string-hash') const STORAGE_KEY = 'metamask-config' var popupIsOpen = false @@ -33,20 +29,8 @@ function triggerUi () { // On first install, open a window to MetaMask website to how-it-works. extension.runtime.onInstalled.addListener(function (details) { - const newTOSHash = stringHash(disclaimer) if (details.reason === 'install') { - controller.setTOSHash(newTOSHash, () => { - extension.tabs.create({url: 'https://metamask.io/#how-it-works'}) - }) - } else if (details.reason === 'update') { - controller.checkTOSChange(newTOSHash, (hasChanged) => { - if (hasChanged) { - controller.resetDisclaimer() - controller.setTOSHash(newTOSHash, () => { - extension.tabs.create({url: 'https://metamask.io/terms.html'}) - }) - } - }) + extension.tabs.create({url: 'https://metamask.io/#how-it-works'}) } }) |