mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-08-24 07:12:04 +10:00
Fixing linux bug where client would never actually quit (#469)
* Fixing linux bug where client would never actually quit * Fixing window minimizing to tray * Make an official event --------- Co-authored-by: Robert Clabough <robert@clabough.tech>
This commit is contained in:
co-authored by
Robert Clabough
parent
380e3a50b4
commit
12c81eb1ac
@@ -42,6 +42,10 @@ listen("update_state", (event) => {
|
||||
state.value = event.payload as AppState;
|
||||
});
|
||||
|
||||
listen("window_visibility_change", () => {
|
||||
document.dispatchEvent(new Event("visibilitychange"));
|
||||
});
|
||||
|
||||
setupHooks();
|
||||
initialNavigation(state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user