Skip to content

Commit 5c83d14

Browse files
committed
1 parent ef98190 commit 5c83d14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/utils/consoleUtils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export const getAllScriptOffsets = (htmlFile) => {
6161
} else {
6262
endFilenameInd = htmlFile.indexOf('.js', ind + startTag.length + 3);
6363
filename = htmlFile.substring(ind + startTag.length, endFilenameInd);
64-
// the length of hijackConsoleErrorsScript is 37 lines
65-
lineOffset = htmlFile.substring(0, ind).split('\n').length + 37;
64+
// the length of hijackConsoleErrorsScript is 36 lines
65+
lineOffset = htmlFile.substring(0, ind).split('\n').length + 36;
6666
offs.push([lineOffset, filename]);
6767
lastInd = ind + 1;
6868
}

0 commit comments

Comments
 (0)