1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Preserve disclaimer line breaks

This commit is contained in:
Dan Finlay 2016-06-16 17:11:13 -07:00
parent 79999109e2
commit 69f628dbe2

View File

@ -6,7 +6,6 @@ const actions = require('../actions')
const fs = require('fs') const fs = require('fs')
const path = require('path') const path = require('path')
const disclaimer = fs.readFileSync(path.join(__dirname, 'disclaimer.txt')).toString() const disclaimer = fs.readFileSync(path.join(__dirname, 'disclaimer.txt')).toString()
module.exports = connect(mapStateToProps)(DisclaimerScreen) module.exports = connect(mapStateToProps)(DisclaimerScreen)
function mapStateToProps(state) { function mapStateToProps(state) {
@ -38,9 +37,10 @@ DisclaimerScreen.prototype.render = function() {
h('div', { h('div', {
style: { style: {
whiteSpace: 'pre-line',
background: 'rgb(235, 235, 235)', background: 'rgb(235, 235, 235)',
height: '336px', height: '336px',
padding: '6px',
width: '80%', width: '80%',
overflowY: 'scroll', overflowY: 'scroll',
} }