mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
8 lines
232 B
TypeScript
8 lines
232 B
TypeScript
|
type DebugConsole = { log(...data: any[]): void }
|
||
|
|
||
|
export const debugging =
|
||
|
new URLSearchParams(window.location.search).get('debug') === 'true'
|
||
|
export const debugConsole: DebugConsole = debugging
|
||
|
? console
|
||
|
: { log: () => {} }
|