@@ -51,7 +51,8 @@ function ableplayer_enqueue_scripts() {
5151 $ version = ABLEPLAYER_VERSION ;
5252 $ version = ( SCRIPT_DEBUG ) ? $ version . '- ' . wp_rand ( 1000 , 9999 ) : $ version ;
5353 // Register/enqueue other dependencies.
54- wp_enqueue_script ( 'js-cookie ' , plugins_url ( 'thirdparty ' , __FILE__ ) . '/js.cookie.js ' , array ( 'jquery ' ), $ version , true );
54+ $ cookie_js = ( SCRIPT_DEBUG ) ? '/js.cookie.js ' : '/js.cookie.min.js ' ;
55+ wp_enqueue_script ( 'js-cookie ' , plugins_url ( 'thirdparty ' , __FILE__ ) . $ cookie_js , array (), $ version , true );
5556 wp_enqueue_script ( 'vimeo ' , 'https://player.vimeo.com/api/player.js ' , array (), $ version , true );
5657 wp_enqueue_style ( 'ableplayer-video ' , plugins_url ( 'assets ' , __FILE__ ) . '/css/media.css ' , array (), $ version );
5758 $ media_js = ( SCRIPT_DEBUG ) ? 'media.js ' : 'media.min.js ' ;
@@ -91,7 +92,7 @@ function ableplayer_enqueue_scripts() {
9192 */
9293 $ css_dir = apply_filters ( 'able_player_css ' , plugins_url ( 'build ' , __FILE__ ) . '/ ' . $ css_file , $ is_production );
9394
94- $ dependencies = array ( 'jquery ' , 'ableplayer-video ' );
95+ $ dependencies = array ( 'js-cookie ' , ' jquery ' , 'ableplayer-video ' );
9596 /**
9697 * Filter the Able Player script dependencies.
9798 *
0 commit comments