Skip to content
Permalink
Browse files

fixes #384

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 772acc09640c90aa43b3106dd483ed40e84271c4
Showing with 4 additions and 4 deletions.
  1. +3 −3 public/js/Cart.js
  2. +1 −1 public/js/Cart.min.js
@@ -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
**/

@@ -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 );

Some generated files are not rendered by default. Learn more.

0 comments on commit 772acc0

Please sign in to comment.
You can’t perform that action at this time.