Module: background script - windowState

Methods

(inner) handleWindowState()

Makes sure that the window state is restored and monitored, such that the extension does not change the original state of the users window.
Source:

(inner) initWindowState()

Saves the window state of the users window. We do this in order to restore this state on restart, because otherwise the window would adapt the state of the hidden window (which is not very user-friendly). The state gets updated anytime the window changes its state.
Source:

(inner) monitorWindowStateChanges()

Saves changes to the window state.
Source:

(inner) restoreWindowState()

Loads the saved window state to restore it.
Source:

(inner) setWindowState()

Sets the window state if the user changes it.
Source: