overleaf/services/web/frontend/js/utils/debugging.ts
Tim Down 38c673d057 Merge pull request #13720 from overleaf/td-review-panel-entry-pos
React review panel entry positioning

GitOrigin-RevId: c22617b1d3243b7d54b093426358aeb291421b9e
2023-07-19 08:03:52 +00:00

7 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: () => {} }