fix console line number (#503)
This commit is contained in:
Родитель
9f3ae774a8
Коммит
c7bafd3746
|
@ -17,15 +17,17 @@ document.addEventListener('DOMContentLoaded', function (e) {
|
|||
onLoad();
|
||||
});
|
||||
|
||||
console.error = createConsoleOverride('ERROR');
|
||||
if (window.parent !== window) {
|
||||
console.error = createConsoleOverride('ERROR');
|
||||
|
||||
console.log = createConsoleOverride('LOG');
|
||||
console.log = createConsoleOverride('LOG');
|
||||
|
||||
console.warn = createConsoleOverride('WARN');
|
||||
console.warn = createConsoleOverride('WARN');
|
||||
|
||||
console.info = createConsoleOverride('INFO');
|
||||
console.info = createConsoleOverride('INFO');
|
||||
|
||||
console.clear = createConsoleOverride('CLEAR');
|
||||
console.clear = createConsoleOverride('CLEAR');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description run initialization on load.
|
||||
|
|
Загрузка…
Ссылка в новой задаче