mirror of
https://github.com/lax1dude/crashreport-viewer.git
synced 2024-12-22 05:54:11 -08:00
ignore stack frames from eagswebrtc.js
This commit is contained in:
parent
e138dd039c
commit
54cb377112
|
@ -215,47 +215,50 @@ function updateSource(srcMap) {
|
||||||
var hasShownWarning = false;
|
var hasShownWarning = false;
|
||||||
for(var i = 0; i < lines.length; ++i) {
|
for(var i = 0; i < lines.length; ++i) {
|
||||||
var l = lines[i];
|
var l = lines[i];
|
||||||
var split = l.split(":");
|
|
||||||
|
|
||||||
if(split.length > 1) {
|
if(l.indexOf("eagswebrtc") === -1) {
|
||||||
var firstToken = split[0].toLowerCase();
|
var split = l.split(":");
|
||||||
if(firstToken.endsWith("error")) {
|
|
||||||
if(!hasShownWarning) {
|
if(split.length > 1) {
|
||||||
hasShownWarning = true;
|
var firstToken = split[0].toLowerCase();
|
||||||
printVersionWarning(vers);
|
if(firstToken.endsWith("error")) {
|
||||||
}
|
if(!hasShownWarning) {
|
||||||
appElements.outputContent.appendChild(highlightLine(l + "\n"));
|
hasShownWarning = true;
|
||||||
continue;
|
printVersionWarning(vers);
|
||||||
}else if(split.length > 2) {
|
|
||||||
var lineTrim = split[split.length - 2].trim();
|
|
||||||
var lineNo = parseInt(lineTrim);
|
|
||||||
var colTrim = split[split.length - 1].trim();
|
|
||||||
var colNo = parseInt(colTrim);
|
|
||||||
if(isNaN(colNo)) {
|
|
||||||
if(colTrim.length > 1) {
|
|
||||||
colNo = parseInt(colTrim.substring(0, colTrim.length - 1));
|
|
||||||
}
|
}
|
||||||
}
|
appElements.outputContent.appendChild(highlightLine(l + "\n"));
|
||||||
if(!isNaN(lineNo) && !isNaN(colNo)) {
|
continue;
|
||||||
var original = formatLine(srcMap.originalPositionFor({ line: lineNo, column: colNo }));
|
}else if(split.length > 2) {
|
||||||
if(original !== null) {
|
var lineTrim = split[split.length - 2].trim();
|
||||||
if(firstToken.endsWith("line")) {
|
var lineNo = parseInt(lineTrim);
|
||||||
appElements.outputContent.appendChild(document.createTextNode(lines[i] + " "));
|
var colTrim = split[split.length - 1].trim();
|
||||||
appElements.outputContent.appendChild(highlightLine(original + "\n"));
|
var colNo = parseInt(colTrim);
|
||||||
}else {
|
if(isNaN(colNo)) {
|
||||||
if(!hasShownWarning) {
|
if(colTrim.length > 1) {
|
||||||
hasShownWarning = true;
|
colNo = parseInt(colTrim.substring(0, colTrim.length - 1));
|
||||||
printVersionWarning(vers);
|
}
|
||||||
}
|
}
|
||||||
var idt = getIndent(split[0]);
|
if(!isNaN(lineNo) && !isNaN(colNo)) {
|
||||||
var realStart = split[0].substring(idt.length);
|
var original = formatLine(srcMap.originalPositionFor({ line: lineNo, column: colNo }));
|
||||||
if(realStart.startsWith("at")) {
|
if(original !== null) {
|
||||||
appElements.outputContent.appendChild(highlightLine(idt + "at " + original + "\n"));
|
if(firstToken.endsWith("line")) {
|
||||||
}else {
|
appElements.outputContent.appendChild(document.createTextNode(lines[i] + " "));
|
||||||
appElements.outputContent.appendChild(highlightLine(idt + original + "\n"));
|
appElements.outputContent.appendChild(highlightLine(original + "\n"));
|
||||||
}
|
}else {
|
||||||
|
if(!hasShownWarning) {
|
||||||
|
hasShownWarning = true;
|
||||||
|
printVersionWarning(vers);
|
||||||
|
}
|
||||||
|
var idt = getIndent(split[0]);
|
||||||
|
var realStart = split[0].substring(idt.length);
|
||||||
|
if(realStart.startsWith("at")) {
|
||||||
|
appElements.outputContent.appendChild(highlightLine(idt + "at " + original + "\n"));
|
||||||
|
}else {
|
||||||
|
appElements.outputContent.appendChild(highlightLine(idt + original + "\n"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user