mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Center welcome window on focus
This commit is contained in:
@@ -524,6 +524,7 @@
|
||||
window.focus();
|
||||
const appWin = window.docShell.treeOwner.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIAppWindow);
|
||||
appWin.rollupAllPopups();
|
||||
appWin.center(null, true, false);
|
||||
},
|
||||
{ once: true }
|
||||
);
|
||||
|
Reference in New Issue
Block a user