1(function (log, $) { 2 3 log.Error = function (data) { 4 5 $.ajax({ 6 url: Utils.baseUrl + 'log/error', 7 type: 'POST', 8 contentType: "application/json; charset=utf-8", 9 dataType: 'json', 10 data: JSON.stringify(data) 11 }); 12 }; 13 14 window.onerror = function (message, source, lineno, colno, error) { 15 16 if (message !== 'Script error.' && lineno !== 0 && colno !== 0 && !source.includes("alpine")) { 17 18 var errorMessage = { 19 "Url": window.location.href, 20 "Message": message, 21 "File": source, 22 "Line": lineno, 23 "Column": colno, 24 "Error": JSON.stringify(error) 25 }; 26 27 log.Error(errorMessage); 28 29 } 30 31 return false; 32 33 }; 34 35}(window.log = window.log || {}, jQuery));
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.