Skip to content

Commit c317121

Browse files
Add a search param to disable log capture support, "nologcapture"
1 parent d133ad7 commit c317121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/pm-log-capture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class StackTrace extends Error {
214214
}
215215
}
216216
}
217-
if (!String(window.location.href).startsWith(`http://localhost:`) || new URLSearchParams(location.search).has('nolivetests')) {
217+
if (!(new URLSearchParams(location.search).has('nologcapture')) && (!String(window.location.href).startsWith(`http://localhost:`) || new URLSearchParams(location.search).has('nolivetests'))) {
218218
for (const name of ['log', 'warn', 'error', 'debug', 'info']) {
219219
const item = window.console[name];
220220
window.console[name] = (...args) => {

0 commit comments

Comments
 (0)