From 5c83d14b6310cdecc9bdba2467302db83dd1c146 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Mon, 26 Nov 2018 17:45:01 -0500 Subject: [PATCH] fix for #769 --- client/utils/consoleUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/utils/consoleUtils.js b/client/utils/consoleUtils.js index ac00d6cf..ec3969db 100644 --- a/client/utils/consoleUtils.js +++ b/client/utils/consoleUtils.js @@ -61,8 +61,8 @@ export const getAllScriptOffsets = (htmlFile) => { } else { endFilenameInd = htmlFile.indexOf('.js', ind + startTag.length + 3); filename = htmlFile.substring(ind + startTag.length, endFilenameInd); - // the length of hijackConsoleErrorsScript is 37 lines - lineOffset = htmlFile.substring(0, ind).split('\n').length + 37; + // the length of hijackConsoleErrorsScript is 36 lines + lineOffset = htmlFile.substring(0, ind).split('\n').length + 36; offs.push([lineOffset, filename]); lastInd = ind + 1; }