调试:onConsole 转发 H5 console 到 hilog(debug 限定)
便于排查 H5 渲染/行为问题(如动画、缩放)。release 不转发以免噪声。 (移除临时诊断探针,保留 onConsole。) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
d16c7259b4
commit
7179e95da1
@@ -224,6 +224,13 @@ export struct BridgeGameContainer {
|
||||
this.slotL?.onFirstProgress();
|
||||
}
|
||||
})
|
||||
.onConsole((event: OnConsoleEvent) => {
|
||||
// 仅 debug 转发 H5 console 到 hilog,便于排查 H5 问题;release 不打扰
|
||||
if (AppEnv.isDebug()) {
|
||||
Logger.tag('WebConsole').i(event.message.getMessage());
|
||||
}
|
||||
return false;
|
||||
})
|
||||
.onRenderExited((event: OnRenderExitedEvent) => this.slotL?.onRenderExited(event.renderExitReason))
|
||||
|
||||
// 子游戏 Web(临时,subgameUrl 非空时存在)
|
||||
|
||||
Reference in New Issue
Block a user