Spearhead: Use the Seedlet scripts for IE11 fixes

This commit is contained in:
Ben Dwyer 2021-02-01 17:25:00 +00:00
parent 7a0912ffe8
commit 40581b9ef5

View file

@ -385,10 +385,10 @@ function seedlet_scripts() {
global $is_IE;
if ( $is_IE ) {
// If IE 11 or below, use a ponyfill to add CSS Variable support
wp_register_script( 'css-vars-ponyfill', get_stylesheet_directory_uri() . '/assets/js/css-vars-ponyfill2.js' );
wp_register_script( 'css-vars-ponyfill', get_template_directory_uri() . '/assets/js/css-vars-ponyfill2.js' );
wp_enqueue_script(
'ie11-fix',
get_stylesheet_directory_uri() . '/assets/js/ie11-fix.js',
get_template_directory_uri() . '/assets/js/ie11-fix.js',
array( 'css-vars-ponyfill' ),
'1.0'
);