Skip to content

Commit

Permalink
New assets
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Apr 10, 2017
1 parent 0f4580d commit eda186a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion includes/class-wc-payment-discounts-apply-discount.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public function __construct() {
*/
public function enqueue_scripts() {
if ( is_checkout() ) {
wp_enqueue_script( 'woocommerce-payment-discounts', plugins_url( 'assets/js/update-checkout.min.js', plugin_dir_path( __FILE__ ) ), array( 'wc-checkout' ), WC_Payment_Discounts::VERSION );
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_script( 'woocommerce-payment-discounts', plugins_url( 'assets/js/frontend/update-checkout' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), array( 'wc-checkout' ), WC_Payment_Discounts::VERSION );
}
}

Expand Down

0 comments on commit eda186a

Please sign in to comment.