-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi platform widgets #18
base: master
Are you sure you want to change the base?
Conversation
Support for multi-platform widget calls (use layers for web and widgets for mobile/native calls)
* master: mob server url for payment can be overridden via query param support REST calls via HTTP POST method (passing use_post in call options)
…ti-platform-widgets * origin/multi-platform-widgets: Immutable options.
# Conflicts: # oksdk.js
} | ||
|
||
return popup; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут у нас расходится логика (был return wnd != null, где wnd аналог popup отсюда)
И это связано с фиксом бага в духе ios webview не открывает попап, если не вернуть его в вызове. Звучит так же странно, как и баг, но деталей не помню уже.
function invokeUIMethod() { | ||
var argStr = ""; | ||
for (var i = 0, l = arguments.length; i < l; i++) { | ||
var arg = arguments[i]; | ||
|
||
if (i > 0) { | ||
argStr += '$'; | ||
} | ||
if (arg != null) { | ||
argStr += encodeURIComponent(String(arg)); | ||
} | ||
} | ||
window.parent.postMessage("__FAPI__" + argStr, "*"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
насколько я понимаю, это второй invokeUIMethod в файле
No description provided.