mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 13:45:17 -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: () => {} }
|