Skip to content
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

Open
wants to merge 84 commits into
base: master
Choose a base branch
from
Open

Multi platform widgets #18

wants to merge 84 commits into from

Conversation

Leikam
Copy link
Contributor

@Leikam Leikam commented May 29, 2019

No description provided.

}

return popup;
Copy link
Contributor Author

@Leikam Leikam May 29, 2019

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 не открывает попап, если не вернуть его в вызове. Звучит так же странно, как и баг, но деталей не помню уже.

Comment on lines +945 to 958
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, "*");
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

насколько я понимаю, это второй invokeUIMethod в файле

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants