We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab23fb9 commit a06bdeaCopy full SHA for a06bdea
app/code/Magento/Customer/view/frontend/web/js/customer-data.js
@@ -344,7 +344,7 @@ define([
344
var sections,
345
redirects;
346
347
- if (settings.type.match(/post|put/i)) {
+ if (settings.type.match(/post|put|delete/i)) {
348
sections = sectionConfig.getAffectedSections(settings.url);
349
350
if (sections) {
@@ -365,7 +365,7 @@ define([
365
$(document).on('submit', function (event) {
366
var sections;
367
368
- if (event.target.method.match(/post|put/i)) {
+ if (event.target.method.match(/post|put|delete/i)) {
369
sections = sectionConfig.getAffectedSections(event.target.action);
370
371
0 commit comments