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

Commit

Permalink
Revert "Exit full screen on tab close" (fixes #2618)
Browse files Browse the repository at this point in the history
This reverts commit 8cded9c.
  • Loading branch information
benmosher authored and bbondy committed Jul 29, 2016
1 parent ce13d72 commit 90dcd8a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions js/stores/windowStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,6 @@ const doAction = (action) => {
newFrame(FrameStateUtil.cloneFrame(action.frameOpts, action.guestInstanceId), action.openInForeground)
break
case WindowConstants.WINDOW_CLOSE_FRAME:
const currentWindow = require('electron').remote.getCurrentWindow()
if (currentWindow && currentWindow.isFullScreen()) {
currentWindow.setFullScreen(false)
}
// Use the frameProps we passed in, or default to the active frame
const frameProps = action.frameProps || FrameStateUtil.getActiveFrame(windowState)
const closingActive = !action.frameProps || action.frameProps === FrameStateUtil.getActiveFrame(windowState)
Expand Down

0 comments on commit 90dcd8a

Please sign in to comment.