Skip to content

Commit c0de461

Browse files
authored
revert
1 parent d93f613 commit c0de461

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/lib/pm-log-capture.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,7 @@ if (!String(window.location.href).startsWith(`http://localhost:`)) {
220220
let stack = [];
221221
if (browserHasStack) stack = parseStack(new Error().stack);
222222
push(name, args, stack);
223-
item.apply(console, args);
224-
225-
const err = new Error();
226-
if (Error.captureStackTrace) {
227-
Error.captureStackTrace(err, window.console[name]);
228-
}
229-
item.apply(console, [...args, err]);
223+
item.call(console, ...args, new StackTrace());
230224
};
231225
}
232226
}

0 commit comments

Comments
 (0)