1
0
mirror of https://github.com/dzeiocom/libs.git synced 2025-04-22 10:52:11 +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:
Florian Bouillon 2021-02-08 12:41:10 +01:00 committed by GitHub
parent 92aaf00af2
commit 1409fc8df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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')
}