| @@ -67,11 +67,11 @@ | ||
| 67 | 67 | ], |
| 68 | 68 | 'integrations' => weforms()->integrations->get_integration_js_settings(), |
| 69 | 69 | 'recaptcha_site' => isset( $recaptcha->key ) ? $recaptcha->key : '', |
| 70 | 70 | 'recaptcha_secret' => isset( $recaptcha->secret ) ? $recaptcha->secret : '', |
| 71 | - 'humanpresence_installed' => ( | |
| 72 | - class_exists( 'HumanPresenceWEFormsIntegration' ) && | |
| 73 | - isset( $humanpresence['wp_hp_premium_license'] ) && | |
| 71 | + 'humanpresence_installed' => ( | |
| 72 | + class_exists( 'HumanPresenceWEFormsIntegration' ) && | |
| 73 | + isset( $humanpresence['wp_hp_premium_license'] ) && | |
| 74 | 74 | $humanpresence['wp_hp_premium_license'] ) |
| 75 | 75 | ? true : false, |
| 76 | 76 | ] ); |
| 77 | 77 | |
| @@ -209,8 +209,16 @@ | ||
| 209 | 209 | * @return void |
| 210 | 210 | */ |
| 211 | 211 | public function builder_mixins_script() { |
| 212 | 212 | ?> |
| 213 | + <script> | |
| 214 | + if (!window.Promise) { | |
| 215 | + var promise_polyfill = document.createElement('script'); | |
| 216 | + promise_polyfill.setAttribute('src','https://cdn.polyfill.io/v2/polyfill.min.js'); | |
| 217 | + document.head.appendChild(promise_polyfill); | |
| 218 | + } | |
| 219 | + </script> | |
| 220 | + | |
| 213 | 221 | <script> |
| 214 | 222 | var wpuf_form_builder_mixins = function(mixins, mixin_parent) { |
| 215 | 223 | if (!mixins || !mixins.length) { |
| 216 | 224 | return []; |