window: prevent error when geometry config is not completely populated
This commit is contained in:
parent
395f3e25c7
commit
434265be35
2 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
- bug fixes
|
||||
- broken scrolling on iPhone iOS 13
|
||||
- window geomtry issue
|
||||
|
||||
## 1.0.1
|
||||
|
||||
|
|
|
|||
|
|
@ -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