1new FmqBasketLine(); 2function FmqBasketLine() { 3 let that = this; 4 this.refreshBasket = function () { 5 const basketHeader = document.querySelector('.basket-header'); 6 BX.ajax.runComponentAction('freematiq:sale.basket.line', 'refreshBasket').then( 7 function (response) { 8 if (response.hasOwnProperty('data') && response.data.hasOwnProperty('HTML') && basketHeader) { 9 basketHeader.outerHTML = response.data.HTML; 10 } 11 }, function (response) { 12 if (response.hasOwnProperty('errors')) { 13 console.error(response.errors); 14 } else { 15 console.error(response); 16 } 17 } 18 ); 19 }; 20 21 BX.addCustomEvent(window, 'OnBasketChange', BX.delegate(this.refreshBasket, this)); 22}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.