Skip to content

Commit

Permalink
Prevent conditional loading of minified js
Browse files Browse the repository at this point in the history
  • Loading branch information
Manos Psychogyiopoulos committed Jun 1, 2022
1 parent 44ad897 commit 886cb35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/blocks/class-wc-dummy-payments-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public function is_active() {
* @return array
*/
public function get_payment_method_script_handles() {
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
$script_path = '/assets/js/frontend/blocks' . $suffix . '.js';
$script_path = '/assets/js/frontend/blocks.js';
$script_asset_path = WC_Dummy_Payments::plugin_abspath() . 'assets/js/frontend/blocks.asset.php';
$script_asset = file_exists( $script_asset_path )
? require( $script_asset_path )
Expand Down

0 comments on commit 886cb35

Please sign in to comment.