1import updateStock from "../helpers/update_stock.module.js"; 2 3export default function list(settings) { 4 const stockContainer = document.querySelector('.list-block'); 5 6 if (stockContainer) { 7 let stockType = 'old'; 8 9 if(stockContainer.querySelector('.listing-item')){ 10 stockType = 'new'; 11 } 12 13 updateStock({stockContainer, settings, stockType}); 14 15 const stockObserver = new MutationObserver((mutation) => { 16 if (mutation) { 17 updateStock({stockContainer, settings, stockType}); 18 } 19 }); 20 21 stockObserver.observe(stockContainer, { childList: true }); 22 } 23}
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.