mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Linted
This commit is contained in:
parent
a167bbc5a0
commit
dfaac78e39
@ -1,14 +1,4 @@
|
|||||||
const createId = require('hat')
|
|
||||||
const extend = require('xtend')
|
|
||||||
const unmountComponentAtNode = require('react-dom').unmountComponentAtNode
|
|
||||||
const findDOMNode = require('react-dom').findDOMNode
|
|
||||||
const render = require('react-dom').render
|
|
||||||
const h = require('react-hyperscript')
|
|
||||||
const PendingTxDetails = require('../../../ui/app/components/pending-tx-details')
|
|
||||||
const PendingMsgDetails = require('../../../ui/app/components/pending-msg-details')
|
|
||||||
const MetaMaskUiCss = require('../../../ui/css')
|
|
||||||
const extension = require('./extension')
|
const extension = require('./extension')
|
||||||
var notificationHandlers = {}
|
|
||||||
|
|
||||||
const notifications = {
|
const notifications = {
|
||||||
createUnlockRequestNotification: createUnlockRequestNotification,
|
createUnlockRequestNotification: createUnlockRequestNotification,
|
||||||
@ -32,11 +22,11 @@ function createMsgNotification (state) {
|
|||||||
|
|
||||||
function showNotification() {
|
function showNotification() {
|
||||||
extension.windows.create({
|
extension.windows.create({
|
||||||
url:"notification.html",
|
url: 'notification.html',
|
||||||
type:"detached_panel",
|
type: 'detached_panel',
|
||||||
focused:true,
|
focused: true,
|
||||||
width:360,
|
width: 360,
|
||||||
height:500,
|
height: 500,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,14 +254,11 @@ function reduceApp (state, action) {
|
|||||||
|
|
||||||
const isNotification = window.METAMASK_UI_TYPE === 'notification'
|
const isNotification = window.METAMASK_UI_TYPE === 'notification'
|
||||||
if (isNotification) {
|
if (isNotification) {
|
||||||
return extension.windows.getCurrent({}, function(win) {
|
extension.windows.getCurrent({}, (win) => {
|
||||||
extension.windows.remove(win.id, function(err) {
|
extension.windows.remove(win.id, console.error)
|
||||||
if (err) console.err(err)
|
})
|
||||||
})
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
debugger
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return extend(appState, {
|
return extend(appState, {
|
||||||
transForward: false,
|
transForward: false,
|
||||||
warning: null,
|
warning: null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user