Skip to content

Commit

Permalink
fix: even 'better' postMessage patch
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Jun 25, 2024
1 parent 1fcdb47 commit 1a1b078
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src-tauri/injection/shared/recreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,9 @@ export function createLocalStorage() {
}

export function badPostMessagePatch() {
// this should support all OS
// @ts-expect-error shut up
const nativePostMessage = window?.chrome?.webview?.postMessage

if (!nativePostMessage) {
// this should support all OS
// @ts-expect-error shut up
window.__TAURI_POST_MESSAGE__ = () => {
return null
}
window.__TAURI_POST_MESSAGE__ = () => {
return null
}
}

0 comments on commit 1a1b078

Please sign in to comment.