chore(electron): re-enable sentry for electron (#7898)

related
https://github.com/toeverything/AFFiNE/pull/7001
This commit is contained in:
pengx17
2024-08-17 04:32:49 +00:00
parent f324fa4719
commit 23c73243ab
5 changed files with 482 additions and 17 deletions

View File

@@ -59,6 +59,8 @@ function main() {
appVersion: runtimeConfig.appVersion,
editorVersion: runtimeConfig.editorVersion,
});
apis?.ui.handleNetworkChange(navigator.onLine);
window.addEventListener('offline', () => {
apis?.ui.handleNetworkChange(false);
});