1function makeExperiment() { 2 const url = `${window.location.protocol}//${window.location.hostname}/matomo/add_widget_experiment`; 3 return fetch(url); 4} 5function getExperiment() { 6 const url = `${window.location.protocol}//${window.location.hostname}/matomo/check_widget_experiment`; 7 return fetch(url) 8 .then((res) => res.json()) 9 .catch((err) => err); 10} 11 12getExperiment() 13 .then((res) => { 14 if (res.created === "1") { 15 return; 16 } 17 makeExperiment().catch((err) => console.log("err", err)); 18 }) 19 .catch((err) => console.log("err", err));
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.