diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-12-20 07:28:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-20 07:28:43 +0800 |
commit | f7eec0b282de511d54fd50f2c75d7371ca6f399d (patch) | |
tree | 7476af4926a4e27999086ee570e46c4f74621b84 /ui/app/first-time | |
parent | 1b6ee56cac34cd3544fd375cad342eb8240ae8aa (diff) | |
parent | 77d2deb17654b87dfd306b7f7cef335b1b511a8f (diff) | |
download | tangerine-wallet-browser-f7eec0b282de511d54fd50f2c75d7371ca6f399d.tar tangerine-wallet-browser-f7eec0b282de511d54fd50f2c75d7371ca6f399d.tar.gz tangerine-wallet-browser-f7eec0b282de511d54fd50f2c75d7371ca6f399d.tar.bz2 tangerine-wallet-browser-f7eec0b282de511d54fd50f2c75d7371ca6f399d.tar.lz tangerine-wallet-browser-f7eec0b282de511d54fd50f2c75d7371ca6f399d.tar.xz tangerine-wallet-browser-f7eec0b282de511d54fd50f2c75d7371ca6f399d.tar.zst tangerine-wallet-browser-f7eec0b282de511d54fd50f2c75d7371ca6f399d.zip |
Merge pull request #936 from MetaMask/MergeMaster
Merge master
Diffstat (limited to 'ui/app/first-time')
-rw-r--r-- | ui/app/first-time/disclaimer.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/app/first-time/disclaimer.js b/ui/app/first-time/disclaimer.js index 819d4a110..a8bafd39b 100644 --- a/ui/app/first-time/disclaimer.js +++ b/ui/app/first-time/disclaimer.js @@ -6,6 +6,8 @@ const actions = require('../actions') const ReactMarkdown = require('react-markdown') const fs = require('fs') const path = require('path') +const linker = require('extension-link-enabler') +const findDOMNode = require('react-dom').findDOMNode const disclaimer = fs.readFileSync(path.join(__dirname, '..', '..', '..', 'USER_AGREEMENT.md')).toString() module.exports = connect(mapStateToProps)(DisclaimerScreen) @@ -98,3 +100,13 @@ DisclaimerScreen.prototype.render = function () { ]) ) } + +DisclaimerScreen.prototype.componentDidMount = function () { + var node = findDOMNode(this) + linker.setupListener(node) +} + +DisclaimerScreen.prototype.componentWillUnmount = function () { + var node = findDOMNode(this) + linker.teardownListener(node) +} |