Skip to content

Commit

Permalink
evaluateJavaScript must be called from main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
joemasilotti committed Dec 10, 2023
1 parent bdafa3f commit 1e8d75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Bridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public final class Bridge: Bridgable {
// let replyMessage = message.replacing(data: data)
// callBridgeFunction("send", arguments: [replyMessage.toJSON()])
// }

@MainActor
@discardableResult
func evaluate(javaScript: String) async -> JavaScriptResult {
guard let webView = webView else {
Expand Down

0 comments on commit 1e8d75a

Please sign in to comment.