File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/code/Magento/Customer/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,6 @@ define([
30
30
url . setBaseUrl ( window . BASE_URL ) ;
31
31
options . sectionLoadUrl = url . build ( 'customer/section/load' ) ;
32
32
33
- //TODO: remove global change, in this case made for initNamespaceStorage
34
- $ . cookieStorage . setConf ( {
35
- path : '/' ,
36
- expires : 1
37
- } ) ;
38
-
39
33
storage = $ . initNamespaceStorage ( 'mage-cache-storage' ) . localStorage ;
40
34
storageInvalidation = $ . initNamespaceStorage ( 'mage-cache-storage-section-invalidation' ) . localStorage ;
41
35
@@ -220,6 +214,12 @@ define([
220
214
this . reload ( sectionConfig . getSectionNames ( ) , true ) ;
221
215
$ . cookieStorage . set ( 'section_data_clean' , '' ) ;
222
216
}
217
+
218
+ var cookieExpires = new Date ( Date . now ( ) + parseInt ( options . cookieLifeTime , 10 ) * 1000 ) ;
219
+ $ . cookieStorage . setConf ( {
220
+ path : '/' ,
221
+ expires : cookieExpires
222
+ } ) ;
223
223
} ,
224
224
225
225
/**
You can’t perform that action at this time.
0 commit comments