mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
chore(electron): re-enable sentry for electron (#7898)
related https://github.com/toeverything/AFFiNE/pull/7001
This commit is contained in:
@@ -59,6 +59,8 @@ function main() {
|
||||
appVersion: runtimeConfig.appVersion,
|
||||
editorVersion: runtimeConfig.editorVersion,
|
||||
});
|
||||
|
||||
apis?.ui.handleNetworkChange(navigator.onLine);
|
||||
window.addEventListener('offline', () => {
|
||||
apis?.ui.handleNetworkChange(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user