Select Git revision
-
Reiter, Christoph authored
appending "#debug" to the URL enables it again. Not sure if this the best mechanism, but better than spaming the console for now.
Reiter, Christoph authoredappending "#debug" to the URL enables it again. Not sure if this the best mechanism, but better than spaming the console for now.
logger.js 229 B
class LoggerType {
get debug() {
if (window.location.hash.includes("debug")) {
return console.debug;
} else {
return () => {};
}
}
}
export const Logger = new LoggerType();