1
0
mirror of https://github.com/dzeiocom/libs.git synced 2025-06-13 11:29:17 +00:00

Removed initConsole Function as it break the Console object (#17)

Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
2021-02-08 12:41:10 +01:00
committed by GitHub
parent 92aaf00af2
commit 1409fc8df9

View File

@ -9,6 +9,8 @@ import Logger from './Logger'
// @ts-expect-error
window.Logger = Logger
// @ts-expect-error
window.logger = new Logger('Console')
// @ts-expect-error
window.initConsole = function() {
window.console = new Logger('Console')
console.log('// @deprecated Now use window.logger to get the correct logger')
}