We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d572fa7 commit 5cadaa5Copy full SHA for 5cadaa5
src/native/index.ts
@@ -26,10 +26,8 @@ export const useWebViewMessage = <T>(
26
(message: Message<T>) => {
27
ref.current?.injectJavaScript(`
28
(function() {
29
-try {
30
- window.dispatchEvent(
31
- new CustomEvent("${EVENT_KEY}",{detail:${JSON.stringify(message)}})
32
- );
+try {
+ window.dispatchEvent(new CustomEvent("${EVENT_KEY}",{detail:${JSON.stringify(message)}}));
33
} catch(e) {
34
// NOP
35
}
0 commit comments