-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
please support custom current promisePolyfillJS #302
Comments
virskor
changed the title
please support promisePolyfillJS
please support custom current promisePolyfillJS
Mar 8, 2020
/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: