Skip to content

Commit

Permalink
workaround for tauri-apps/tauri#9502
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed May 19, 2024
1 parent fc6d56d commit 8f68f54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ Sentry.init({
},
beforeSend: (event, hint) => {
const originalException: any = hint.originalException;
// Temporary workaround for https://github.com/tauri-apps/tauri/issues/9502
if (typeof originalException === 'string' && originalException.includes('not allowed on window main, webview main, allowed windows:')) {
location.reload();
return null;
}
if (originalException && originalException['reason']) {
if (originalException['unhandled'] !== true) {
return null;
Expand Down

0 comments on commit 8f68f54

Please sign in to comment.