mirror of
https://github.com/owntracks/recorder.git
synced 2026-05-05 02:36:45 +00:00
15 lines
380 B
JavaScript
15 lines
380 B
JavaScript
|
|
|
|
/**
|
|
* When this is set to true, all frontend pages will start loggin debug information to the browser console.
|
|
*/
|
|
export const DEBUG = false;
|
|
|
|
/**
|
|
* Logs debug information to the browser console if debug mode is active.
|
|
* @param {...any} args - The arguments you would normally pass to `console.log`.
|
|
*/
|
|
export function debug(...args){
|
|
if(DEBUG) console.log(...args);
|
|
}
|