mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Fix cc.debug (#9081)
This commit is contained in:
committed by
GitHub
parent
44dc537b87
commit
dbcc52cf1e
@@ -250,7 +250,7 @@ export function _resetDebugSetting (mode: DebugMode) {
|
||||
|
||||
if (mode <= DebugMode.VERBOSE) {
|
||||
if (typeof console.debug === 'function') {
|
||||
const vendorDebug = console.debug;
|
||||
const vendorDebug = console.debug.bind(console);
|
||||
ccDebug = (...data: any[]) => vendorDebug(...data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ export * from './visible-rect';
|
||||
export * from './view';
|
||||
export * from './event-manager';
|
||||
export {
|
||||
debug,
|
||||
log,
|
||||
error,
|
||||
warn,
|
||||
|
||||
Reference in New Issue
Block a user