mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
JS-4052: fix
This commit is contained in:
parent
f4a60d0e91
commit
bd383da639
2 changed files with 12 additions and 5 deletions
|
@ -276,6 +276,17 @@ class Api {
|
|||
return data;
|
||||
};
|
||||
|
||||
focusWindow (win) {
|
||||
if (!win || win.isDestroyed()) {
|
||||
return;
|
||||
};
|
||||
|
||||
win.show();
|
||||
win.focus();
|
||||
win.setAlwaysOnTop(true);
|
||||
win.setAlwaysOnTop(false);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
module.exports = new Api();
|
Loading…
Add table
Add a link
Reference in a new issue