Skip to content

Commit

Permalink
Merge pull request #1463 from sapayth/fix/remove_polyfill.io_useage
Browse files Browse the repository at this point in the history
fix: replace usage of polyfill.io with cloudflare
  • Loading branch information
sapayth authored Jul 2, 2024
2 parents fa4cee9 + 7200deb commit fca8f9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/Admin/Forms/Admin_Form_Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,10 @@ public function admin_print_scripts() {
<script>
if (!window.Promise) {
var promise_polyfill = document.createElement( 'script' );
promise_polyfill.setAttribute( 'src', 'https://cdn.polyfill.io/v2/polyfill.min.js' );
promise_polyfill.setAttribute( 'src', 'https://cdnjs.cloudflare.com/polyfill/v3/polyfill.js?version=4.8.0&features=default' );
document.head.appendChild( promise_polyfill );
}
</script>

<script>
var wpuf_form_builder_mixins = function ( mixins, mixin_parent ) {
if (!mixins || !mixins.length) {
Expand Down

0 comments on commit fca8f9c

Please sign in to comment.