mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
fix:focus preview popup if already opened
This commit is contained in:
parent
e384f7d2e2
commit
9e1cfef924
@ -23,6 +23,8 @@
|
||||
this.popup = window.open('about:blank', '', 'width=320,height=320');
|
||||
this.popup.document.body.innerHTML = pskl.utils.Template.get('popup-preview-partial');
|
||||
window.setTimeout(this.onPopupLoaded.bind(this), 500);
|
||||
} else {
|
||||
this.popup.focus();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user