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:
parent
92aaf00af2
commit
1409fc8df9
@ -9,6 +9,8 @@ import Logger from './Logger'
|
|||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
window.Logger = Logger
|
window.Logger = Logger
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
|
window.logger = new Logger('Console')
|
||||||
|
// @ts-expect-error
|
||||||
window.initConsole = function() {
|
window.initConsole = function() {
|
||||||
window.console = new Logger('Console')
|
console.log('// @deprecated Now use window.logger to get the correct logger')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user