mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -05:00
21 lines
No EOL
557 B
JavaScript
21 lines
No EOL
557 B
JavaScript
import { getSetting } from './settings.js';
|
|
|
|
export const debug = function () {
|
|
if (getSetting('debug', false)) {
|
|
// eslint-disable-next-line no-console
|
|
console.log.apply(null, arguments);
|
|
}
|
|
};
|
|
|
|
export const debugGroup = function () {
|
|
if (getSetting('debug', false)) {
|
|
// eslint-disable-next-line no-console
|
|
console.groupCollapsed.apply(null, arguments);
|
|
}
|
|
};
|
|
export const debugGroupEnd = function () {
|
|
if (getSetting('debug', false)) {
|
|
// eslint-disable-next-line no-console
|
|
console.groupEnd.apply(null, arguments);
|
|
}
|
|
}; |