-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
please support custom current promisePolyfillJS #302
Comments
/Classes/InAppWebView.swift line about 43 // // https://github.com/taylorhakes/promise-polyfill/blob/master/src/index.js
// let promisePolyfillJS = """
// if (window.Promise == null) {
// var setTimeoutFunc = setTimeout;
// function isArray(x) {
// return Boolean(x && typeof x.length !== "undefined");
// };
// function noop() {}
// function bind(fn, thisArg) {
// return function() {
// fn.apply(thisArg, arguments);
// };
// };
// function Promise(fn) { |
if anyone has same problem with me, just comment it!! |
Released new version Let me know if your code works now.. However this polyfill is added only in webviews that are too old and where window.Promise is not defined.. I use it because I need it to make javascript bridge work properly! |
It worked fine now |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
please support custom promisePolyfillJS.
this is good plugin, but i found my webpage dose not work well with this plugin, after debugging i found const promisePolyfillJS on IOS side would confuse us.
not everyone use same polyfill version, please support this feature.
THIS IS AN IMPORTANT ISSUE.
THANKS FOR YOUR GREAT JOB.
The text was updated successfully, but these errors were encountered: