mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
commit
672e3a463a
@ -42,6 +42,7 @@
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"no-restricted-globals": ["error", "event"],
|
||||
"accessor-pairs": 2,
|
||||
"arrow-spacing": [2, { "before": true, "after": true }],
|
||||
"block-spacing": [2, "always"],
|
||||
|
@ -207,7 +207,7 @@ gulp.task('dev:copy',
|
||||
|
||||
// lint js
|
||||
|
||||
const lintTargets = ['app/**/*.json', 'app/**/*.js', '!app/scripts/vendor/**/*.js', 'ui/**/*.js', 'mascara/src/*.js', 'mascara/server/*.js', '!node_modules/**', '!dist/firefox/**', '!docs/**', '!app/scripts/chromereload.js', '!mascara/test/jquery-3.1.0.min.js']
|
||||
const lintTargets = ['app/**/*.json', 'app/**/*.js', '!app/scripts/vendor/**/*.js', 'ui/**/*.js', 'old-ui/**/*.js', 'mascara/src/*.js', 'mascara/server/*.js', '!node_modules/**', '!dist/firefox/**', '!docs/**', '!app/scripts/chromereload.js', '!mascara/test/jquery-3.1.0.min.js']
|
||||
|
||||
gulp.task('lint', function () {
|
||||
// Ignoring node_modules, dist/firefox, and docs folders:
|
||||
|
@ -581,7 +581,6 @@ App.prototype.renderPrimary = function () {
|
||||
|
||||
case 'qr':
|
||||
log.debug('rendering show qr screen')
|
||||
console.log(`QrView`, QrView);
|
||||
return h('div', {
|
||||
style: {
|
||||
position: 'absolute',
|
||||
|
@ -247,7 +247,6 @@ BuyButtonSubview.prototype.backButtonContext = function () {
|
||||
if (this.props.context === 'confTx') {
|
||||
this.props.dispatch(actions.showConfTxPage(false))
|
||||
} else {
|
||||
console.log(`actions.goHome`, actions.goHome);
|
||||
this.props.dispatch(actions.goHome())
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ function QrCodeView () {
|
||||
QrCodeView.prototype.render = function () {
|
||||
const props = this.props
|
||||
const Qr = props.Qr
|
||||
console.log(`QrCodeView Qr`, Qr);
|
||||
const address = `${isHexPrefixed(Qr.data) ? 'ethereum:' : ''}${Qr.data}`
|
||||
const qrImage = qrCode(4, 'M')
|
||||
qrImage.addData(address)
|
||||
|
@ -35,7 +35,7 @@ RangeSlider.prototype.render = function () {
|
||||
step: increment,
|
||||
style: range,
|
||||
value: state.value || defaultValue,
|
||||
onChange: mirrorInput ? this.mirrorInputs.bind(this, event) : onInput,
|
||||
onChange: mirrorInput ? this.mirrorInputs.bind(this) : onInput,
|
||||
}),
|
||||
|
||||
// Mirrored input for range
|
||||
@ -47,7 +47,7 @@ RangeSlider.prototype.render = function () {
|
||||
value: state.value || defaultValue,
|
||||
step: increment,
|
||||
style: input,
|
||||
onChange: this.mirrorInputs.bind(this, event),
|
||||
onChange: this.mirrorInputs.bind(this),
|
||||
}) : null,
|
||||
])
|
||||
)
|
||||
|
@ -30,7 +30,7 @@ function TransactionListItem () {
|
||||
|
||||
TransactionListItem.prototype.showRetryButton = function () {
|
||||
const { transaction = {}, transactions } = this.props
|
||||
const { status, submittedTime, txParams } = transaction
|
||||
const { submittedTime, txParams } = transaction
|
||||
|
||||
if (!txParams) {
|
||||
return false
|
||||
|
@ -42,7 +42,7 @@ ConfigScreen.prototype.render = function () {
|
||||
// subtitle and nav
|
||||
h('.section-title.flex-row.flex-center', [
|
||||
h('i.fa.fa-arrow-left.fa-lg.cursor-pointer', {
|
||||
onClick: (event) => {
|
||||
onClick: () => {
|
||||
state.dispatch(actions.goHome())
|
||||
},
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user