@@ -55,8 +55,8 @@ function ableplayer_enqueue_scripts() {
5555
5656 // Register/enqueue other dependencies.
5757 if ( 'true ' === ableplayer_get_settings ( 'cookies ' ) ) {
58- $ cookie_js = ( $ debug ) ? '/js.cookie.js ' : '/js.cookie.min.js ' ;
59- wp_enqueue_script ( 'js-cookie ' , plugins_url ( 'thirdparty ' , __FILE__ ) . $ cookie_js , array (), $ version , true );
58+ $ cookie_js = ( $ debug ) ? 'node_modules /js-cookie/dist/js .cookie.js ' : 'node_modules/js-cookie/dist /js.cookie.min.js ' ;
59+ wp_enqueue_script ( 'js-cookie ' , plugins_url ( '' , __FILE__ ) . ' / ' . $ cookie_js , array (), $ version , true );
6060 $ dependencies = array ( 'js-cookie ' , 'jquery ' , 'ableplayer-video ' );
6161 }
6262 if ( 'true ' === ableplayer_get_settings ( 'vimeo ' ) ) {
@@ -85,7 +85,7 @@ function ableplayer_enqueue_scripts() {
8585 );
8686
8787 $ js_file = ( $ debug ) ? 'ableplayer.js ' : 'ableplayer.min.js ' ;
88- $ css_file = ( $ debug ) ? 'styles/ableplayer.css ' : 'build/ableplayer.min.css ' ;
88+ $ css_file = ( $ debug ) ? 'node_modules/ableplayer/ styles/ableplayer.css ' : 'node_modules/ableplayer/ build/ableplayer.min.css ' ;
8989 /**
9090 * Filter the Able Player JS URL.
9191 *
@@ -96,7 +96,7 @@ function ableplayer_enqueue_scripts() {
9696 *
9797 * @return string
9898 */
99- $ js_dir = apply_filters ( 'able_player_js ' , plugins_url ( 'build ' , __FILE__ ) . '/ ' . $ js_file , $ debug );
99+ $ js_dir = apply_filters ( 'able_player_js ' , plugins_url ( 'node_modules/ableplayer/ build ' , __FILE__ ) . '/ ' . $ js_file , $ debug );
100100 /**
101101 * Filter the Able Player CSS URL.
102102 *
0 commit comments