File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
live-view/extensions/mobile-console Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -315,6 +315,14 @@ let logger = {
315315 // sometimes aren't available in the stack on Safari,
316316 // so we need to get them from the Error object
317317
318+
319+ // replace absolute URLs with relative URLs in stack
320+
321+ // get origin URL
322+ const location = logger . cW . location ;
323+ const originURL = location . origin + location . pathname ;
324+ const indexURL = originURL + location . search ;
325+
318326 let entryURL = error . sourceURL ;
319327
320328 // replace index URLs
@@ -323,6 +331,7 @@ let logger = {
323331 // remove absolute URLs' origin
324332 entryURL = entryURL . replaceAll ( originURL , '' ) ;
325333
334+
326335 // save entry in stack
327336 stack = [ entryURL + ':' + error . line + ':' + error . column ] ;
328337
You can’t perform that action at this time.
0 commit comments