We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8388d6 + 69ccf82 commit de0acecCopy full SHA for de0acec
app/code/Magento/Customer/view/frontend/web/js/customer-data.js
@@ -1,6 +1,6 @@
1
/**
2
- * Copyright © Magento, Inc. All rights reserved.
3
- * See COPYING.txt for license details.
+ * Copyright 2015 Adobe
+ * All Rights Reserved.
4
*/
5
6
@@ -95,7 +95,10 @@ define([
95
parameters['force_new_section_timestamp'] = forceNewSectionTimestamp;
96
97
return $.getJSON(options.sectionLoadUrl, parameters).fail(function (jqXHR) {
98
- throw new Error(jqXHR);
+ // don't throw error if the request is cancelled or blocked
99
+ if (jqXHR.status !== 0) {
100
+ throw new Error(jqXHR);
101
+ }
102
});
103
}
104
};
0 commit comments