mirror of
https://github.com/lax1dude/crashreport-viewer.git
synced 2024-12-21 13:44:09 -08:00
fixed mistake
This commit is contained in:
parent
9bd323b1be
commit
46e5a0629f
|
@ -156,10 +156,10 @@ function highlightLine(line) {
|
||||||
function formatLine(srcMapLine) {
|
function formatLine(srcMapLine) {
|
||||||
if(srcMapLine.line !== null) {
|
if(srcMapLine.line !== null) {
|
||||||
if(srcMapLine.name === null) {
|
if(srcMapLine.name === null) {
|
||||||
return (srcMapLine.source === null ? "<unknown>" : srcMapLine.source) + ":" +
|
return (srcMapLine.source === null ? "<anonymous>" : srcMapLine.source) + ":" +
|
||||||
srcMapLine.line + (srcMapLine.column > 0 ? ":" + srcMapLine.column : "");
|
srcMapLine.line + (srcMapLine.column > 0 ? ":" + srcMapLine.column : "");
|
||||||
}else {
|
}else {
|
||||||
return "" + srcMapLine.name + " (" + (srcMapLine.source === null ? "<unknown>" :
|
return "" + srcMapLine.name + " (" + (srcMapLine.source === null ? "<anonymous>" :
|
||||||
srcMapLine.source) + ":" + srcMapLine.line + ":" + (srcMapLine.column > 0 ? ":" +
|
srcMapLine.source) + ":" + srcMapLine.line + ":" + (srcMapLine.column > 0 ? ":" +
|
||||||
srcMapLine.column : "") + ")";
|
srcMapLine.column : "") + ")";
|
||||||
}
|
}
|
||||||
|
@ -223,7 +223,7 @@ function updateSource(srcMap) {
|
||||||
for(var i = 0; i < lines.length; ++i) {
|
for(var i = 0; i < lines.length; ++i) {
|
||||||
var l = lines[i];
|
var l = lines[i];
|
||||||
|
|
||||||
if(l.indexOf("eagswebrtc") === -1) {
|
if(l.indexOf("<anonymous>") === -1 && l.indexOf("eagswebrtc") === -1) {
|
||||||
var split = l.split(":");
|
var split = l.split(":");
|
||||||
|
|
||||||
if(split.length > 1) {
|
if(split.length > 1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user