window: prevent error when geometry config is not completely populated
This commit is contained in:
parent
181c9bc2a9
commit
db7f6fe29c
2 changed files with 2 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ module.exports = function(options={}) {
|
|||
window.setBounds({x, y, width, height})
|
||||
|
||||
// retreive last geometry
|
||||
if (settings.read('geometry')) {
|
||||
if (settings.read('geometry') && settings.read('geometry')[options.id]) {
|
||||
var geometry = settings.read('geometry')[options.id],
|
||||
mScreen = screen.getDisplayMatching(geometry)
|
||||
if (intersectionArea(geometry, mScreen.bounds) > 20000) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue