fix for #769
This commit is contained in:
parent
ef98190e25
commit
5c83d14b63
1 changed files with 2 additions and 2 deletions
|
@ -61,8 +61,8 @@ export const getAllScriptOffsets = (htmlFile) => {
|
||||||
} else {
|
} else {
|
||||||
endFilenameInd = htmlFile.indexOf('.js', ind + startTag.length + 3);
|
endFilenameInd = htmlFile.indexOf('.js', ind + startTag.length + 3);
|
||||||
filename = htmlFile.substring(ind + startTag.length, endFilenameInd);
|
filename = htmlFile.substring(ind + startTag.length, endFilenameInd);
|
||||||
// the length of hijackConsoleErrorsScript is 37 lines
|
// the length of hijackConsoleErrorsScript is 36 lines
|
||||||
lineOffset = htmlFile.substring(0, ind).split('\n').length + 37;
|
lineOffset = htmlFile.substring(0, ind).split('\n').length + 36;
|
||||||
offs.push([lineOffset, filename]);
|
offs.push([lineOffset, filename]);
|
||||||
lastInd = ind + 1;
|
lastInd = ind + 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue