Start in correct full screen state

If the app is already fullscreen when it is loaded, set
state.view.isFullScreen to the correct state.
This commit is contained in:
Feross Aboukhadijeh
2016-03-05 14:56:55 -08:00
parent b166c05a06
commit 11464176cb
2 changed files with 16 additions and 10 deletions

View File

@@ -46,6 +46,7 @@ var state = global.state = {
// history: [], /* track how we got to the current view. enables Back button */
// historyIndex: 0,
isFocused: true,
isFullScreen: false,
mainWindowBounds: null, /* x y width height */
title: 'WebTorrent' /* current window title */
},