Skip to content

Commit 2935f3c

Browse files
committed
Update logger.js
1 parent fdacabd commit 2935f3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

live-view/extensions/mobile-console/logger.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,11 @@ let logger = {
332332
entryURL = entryURL.replaceAll(originURL, '');
333333

334334

335+
const line = error.line ?? 0;
336+
const column = error.column ?? 0;
337+
335338
// save entry in stack
336-
stack = [entryURL + ':' + error.line + ':' + error.column];
339+
stack = [entryURL + ':' + line + ':' + column];
337340

338341
}
339342

0 commit comments

Comments
 (0)