Skip to content
This repository was archived by the owner on Mar 17, 2022. It is now read-only.

Commit 772acc0

Browse files
committed
fixes #384
fixes #384 by updating js to align with woo commerce : Cart.min.js handling of removed_from_cart
1 parent 08fe143 commit 772acc0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

public/js/Cart.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Modified WooCommerce cart-fragments.js script to break HTML5 fragment caching.
99
* Useful when switching languages. Adds support new Cart page ajax.
1010
*
11-
* Updated in line with WooCommerce 3.1 cart-fragments.js,
11+
* Updated in line with WooCommerce 3.5.3 cart-fragments.js,
1212
* only difference is the additional Polylang lines... and these commments
1313
**/
1414

@@ -21,8 +21,8 @@ jQuery( function( $ ) {
2121
}
2222

2323
/* Storage Handling */
24-
var $supports_html5_storage;
25-
var cart_hash_key = wc_cart_fragments_params.cart_hash_key;
24+
var $supports_html5_storage = true,
25+
cart_hash_key = wc_cart_fragments_params.cart_hash_key;
2626

2727
try {
2828
$supports_html5_storage = ( 'sessionStorage' in window && window.sessionStorage !== null );

public/js/Cart.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)