Skip to content

Commit 2eb591a

Browse files
committed
auto: sync telegram-web-app.js
1 parent 825c2f7 commit 2eb591a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

telegram-web-app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,6 +2534,9 @@
25342534
var reqTo, fallbackTo, reqDelay = 0;
25352535
var reqInvoke = function() {
25362536
invokeCustomMethod('getRequestedContact', {}, function(err, res) {
2537+
if (res.substr(0, 1) == '"' && res.substr(-1) == '"') { // macos fix
2538+
res = JSON.parse(res);
2539+
}
25372540
if (res && res.length) {
25382541
clearTimeout(fallbackTo);
25392542
callback(res);

0 commit comments

Comments
 (0)