Skip to content

Commit

Permalink
fix: unhandled promise rejection in webview instrumentation (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
seemk authored Dec 7, 2022
1 parent 2d9c08b commit 161c2ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class WebViewInstrumentation: NSObject, WKScriptMessageHandler {
cachedSessionId: '\(lastSetSessionId)',
getNativeSessionId: function() {
try {
window.webkit.messageHandlers.SplunkRumNativeUpdate.postMessage();
window.webkit.messageHandlers.SplunkRumNativeUpdate.postMessage('').catch(function() {});
} catch (e) {
// ignored
}
Expand Down

0 comments on commit 161c2ca

Please sign in to comment.