| Current Path : /proc/thread-self/cwd/static/frontend/Magento/luma/it_IT/Magento_Checkout/js/ |
| Current File : //proc/thread-self/cwd/static/frontend/Magento/luma/it_IT/Magento_Checkout/js/empty-cart.js |
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
define(['Magento_Customer/js/customer-data'], function (customerData) {
'use strict';
return function () {
var cartData = customerData.get('cart');
customerData.getInitCustomerData().done(function () {
if (cartData().items && cartData().items.length !== 0) {
customerData.reload(['cart'], false);
}
});
};
});