Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Follow up of a8d33f4
Browse files Browse the repository at this point in the history
Auditors: @bridiver
  • Loading branch information
darkdh committed Jan 25, 2017
1 parent 903df7e commit c44b0eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/browser/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ const api = {
}

if (disposition === 'new-window' || disposition === 'new-popup') {
const windowOpts = size
windowOpts.disposition = disposition
appActions.newWindow(makeImmutable(frameOpts), makeImmutable(windowOpts))
const windowOpts = makeImmutable(size)
appActions.newWindow(makeImmutable(frameOpts), windowOpts)
} else {
let hostWebContents = source.hostWebContents || source
hostWebContents.send(messages.SHORTCUT_NEW_FRAME, location, { frameOpts })
Expand Down
4 changes: 2 additions & 2 deletions js/stores/appStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ const handleAppAction = (action) => {
shuttingDown = true
break
case appConstants.APP_NEW_WINDOW:
const frameOpts = action.frameOpts && action.frameOpts.toJS()
const frameOpts = (action.frameOpts && action.frameOpts.toJS()) || {}
const browserOpts = (action.browserOpts && action.browserOpts.toJS()) || {}
const newWindowState = action.restoredState || {}

Expand All @@ -411,7 +411,7 @@ const handleAppAction = (action) => {

mainWindow.webContents.on('did-finish-load', (e) => {
lastEmittedState = appState
e.sender.send(messages.INITIALIZE_WINDOW, browserOpts.disposition, appState.toJS(), frames, action.restoredState)
e.sender.send(messages.INITIALIZE_WINDOW, frameOpts.disposition, appState.toJS(), frames, action.restoredState)
if (action.cb) {
action.cb()
}
Expand Down

1 comment on commit c44b0eb

@bridiver
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.