Skip to content

Commit 67bcc61

Browse files
committed
deploy: 166cc4c
1 parent a43151c commit 67bcc61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ableplayer.php.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
*/
7373
function ableplayer_enqueue_scripts() {
7474
// Register/enqueue other dependencies.
75-
wp_enqueue_script( 'js-cookie', plugins_url( 'thirdparty', __FILE__ ) . '/js.cookie.js', array( 'jquery' ), ABLEPLAYER_VERSION );
76-
wp_enqueue_script( 'vimeo', 'https://player.vimeo.com/api/player.js', array(), ABLEPLAYER_VERSION );
75+
wp_enqueue_script( 'js-cookie', plugins_url( 'thirdparty', __FILE__ ) . '/js.cookie.js', array( 'jquery' ), ABLEPLAYER_VERSION, true );
76+
wp_enqueue_script( 'vimeo', 'https://player.vimeo.com/api/player.js', array(), ABLEPLAYER_VERSION, true );
7777

7878
// if the environment is production, use minified files. Otherwise, inherit the value of SCRIPT_DEBUG.
7979
$is_production = ( function_exists( 'wp_get_environment_type' ) && wp_get_environment_type() === 'production' ) ? true : SCRIPT_DEBUG;
@@ -104,7 +104,7 @@
104104
$css_dir = apply_filters( 'able_player_css', plugins_url( 'build', __FILE__ ) . '/' . $css_file, $is_production );
105105

106106
// Enqueue Able Player script and CSS.
107-
wp_enqueue_script( 'ableplayer', $js_dir, array( 'jquery' ), ABLEPLAYER_VERSION );
107+
wp_enqueue_script( 'ableplayer', $js_dir, array( 'jquery' ), ABLEPLAYER_VERSION, true );
108108
wp_enqueue_style( 'ableplayer', $css_dir, array(), ABLEPLAYER_VERSION );
109109
}
110110
add_action( 'wp_enqueue_scripts', 'ableplayer_enqueue_scripts' );

0 commit comments

Comments
 (0)