Gift original details removal

This commit is contained in:
Ilya Laktyushin
2025-09-07 06:49:28 +05:00
parent 5c0796b536
commit 141e7c1f49
14 changed files with 221 additions and 26 deletions

View File

@@ -227,7 +227,7 @@ final class WebAppWebView: WKWebView {
}
func sendEvent(name: String, data: String?) {
let script = "window.TelegramGameProxy.receiveEvent(\"\(name)\", \(data ?? "null"))"
let script = "window.TelegramGameProxy && window.TelegramGameProxy.receiveEvent && window.TelegramGameProxy.receiveEvent(\"\(name)\", \(data ?? "null"))"
self.evaluateJavaScript(script, completionHandler: { _, _ in
})
}