Skip to content

Commit

Permalink
Fix incorrect polyfill script handles (#7857)
Browse files Browse the repository at this point in the history
This change fixes incorrect polyfill script handles introduced by
e697f72.
  • Loading branch information
brandonpayton authored and gziolo committed Jul 10, 2018
1 parent c72f5b4 commit afd13cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function gutenberg_register_scripts_and_styles() {
wp_add_inline_script(
'wp-dom',
gutenberg_get_script_polyfill( array(
'document.contains' => 'node-contains',
'document.contains' => 'wp-polyfill-node-contains',
) ),
'before'
);
Expand Down Expand Up @@ -274,8 +274,8 @@ function gutenberg_register_scripts_and_styles() {
wp_add_inline_script(
'wp-blocks',
gutenberg_get_script_polyfill( array(
'\'Promise\' in window' => 'promise',
'\'fetch\' in window' => 'fetch',
'\'Promise\' in window' => 'wp-polyfill-promise',
'\'fetch\' in window' => 'wp-polyfill-fetch',
) ),
'before'
);
Expand Down Expand Up @@ -445,7 +445,7 @@ function gutenberg_register_scripts_and_styles() {
);
wp_add_inline_script(
'wp-edit-post',
gutenberg_get_script_polyfill( array( 'window.FormData && window.FormData.prototype.keys' => 'formdata' ) ),
gutenberg_get_script_polyfill( array( 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata' ) ),
'before'
);

Expand Down

0 comments on commit afd13cc

Please sign in to comment.