chore(core): split sentry and setup into web/electron (#6357)

This commit is contained in:
Brooooooklyn committed 2024-03-28 10:24:25 +00:00
1 parent 88d04e23e9
commit c2847e2082
17 files changed
+463 -198

No files matched your search

@@ -15,6 +15,8 @@ import { launchStage } from '../windows-manager/stage';
import { getChallengeResponse } from './challenge';
import { getGoogleOauthCode } from './google-auth';
export let isOnline = true;
export const uiHandlers = {
isMaximized: async () => {
const window = await getMainWindow();
@@ -58,6 +60,9 @@ export const uiHandlers = {
handleCloseApp: async () => {
app.quit();
},
handleNetworkChange: async (_, _isOnline: boolean) => {
isOnline = _isOnline;
},
getGoogleOauthCode: async () => {
return getGoogleOauthCode();
},