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

Commit

Permalink
fixes #384
Browse files Browse the repository at this point in the history
fixes #384 by updating js to align with woo commerce :  Cart.min.js
handling of removed_from_cart
  • Loading branch information
Jon007 committed Dec 27, 2018
1 parent 08fe143 commit 772acc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions public/js/Cart.js
Expand Up @@ -8,7 +8,7 @@
* Modified WooCommerce cart-fragments.js script to break HTML5 fragment caching.
* Useful when switching languages. Adds support new Cart page ajax.
*
* Updated in line with WooCommerce 3.1 cart-fragments.js,
* Updated in line with WooCommerce 3.5.3 cart-fragments.js,
* only difference is the additional Polylang lines... and these commments
**/

Expand All @@ -21,8 +21,8 @@ jQuery( function( $ ) {
}

/* Storage Handling */
var $supports_html5_storage;
var cart_hash_key = wc_cart_fragments_params.cart_hash_key;
var $supports_html5_storage = true,
cart_hash_key = wc_cart_fragments_params.cart_hash_key;

try {
$supports_html5_storage = ( 'sessionStorage' in window && window.sessionStorage !== null );
Expand Down
2 changes: 1 addition & 1 deletion public/js/Cart.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 772acc0

Please sign in to comment.