Merge pull request #8 from cheeaun/main

Update from main
This commit is contained in:
Chee Aun 2022-12-16 13:59:24 +08:00 committed by GitHub
commit c0c7d65034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,6 +52,16 @@ function App() {
: 'Compose',
);
useEffect(() => {
if (uiState === 'closed') {
try {
// Focus parent window
window.opener.focus();
} catch (e) {}
window.close();
}
}, [uiState]);
if (uiState === 'closed') {
return (
<div class="box">