Skip to content

Commit

Permalink
ENGCOM-5457: fix customer data race condition when bundling is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Jul 19, 2019
2 parents 9e58235 + d5d8e6f commit 232e2b1
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ define([
'underscore',
'ko',
'Magento_Customer/js/section-config',
'mage/url',
'mage/storage',
'jquery/jquery-storageapi'
], function ($, _, ko, sectionConfig) {
], function ($, _, ko, sectionConfig, url) {
'use strict';

var options,
var options = {},
storage,
storageInvalidation,
invalidateCacheBySessionTimeOut,
Expand All @@ -25,6 +26,9 @@ define([
buffer,
customerData;

url.setBaseUrl(window.BASE_URL);
options.sectionLoadUrl = url.build('customer/section/load');

//TODO: remove global change, in this case made for initNamespaceStorage
$.cookieStorage.setConf({
path: '/',
Expand Down

0 comments on commit 232e2b1

Please sign in to comment.