性能优化: 生产环境关闭GeckoView控制台输出

This commit is contained in:
fengge 2026-06-01 18:10:04 +08:00
parent a2c8fd2c1a
commit 01dec2de0e
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class MainActivity : AppCompatActivity() {
private fun createGeckoRuntime(): GeckoRuntime {
val runtime = GeckoRuntime.getDefault(this)
runtime.settings.aboutConfigEnabled = true
runtime.settings.consoleOutputEnabled = true
runtime.settings.consoleOutputEnabled = com.stand.standapp.BuildConfig.DEBUG
// 强制清缓存,确保 JS/CSS 等资源获取最新版本
try {
// runtime.storageController.clearData(ClearFlags.ALL)