性能优化: 生产环境关闭GeckoView控制台输出
This commit is contained in:
parent
a2c8fd2c1a
commit
01dec2de0e
|
|
@ -221,7 +221,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
private fun createGeckoRuntime(): GeckoRuntime {
|
private fun createGeckoRuntime(): GeckoRuntime {
|
||||||
val runtime = GeckoRuntime.getDefault(this)
|
val runtime = GeckoRuntime.getDefault(this)
|
||||||
runtime.settings.aboutConfigEnabled = true
|
runtime.settings.aboutConfigEnabled = true
|
||||||
runtime.settings.consoleOutputEnabled = true
|
runtime.settings.consoleOutputEnabled = com.stand.standapp.BuildConfig.DEBUG
|
||||||
// 强制清缓存,确保 JS/CSS 等资源获取最新版本
|
// 强制清缓存,确保 JS/CSS 等资源获取最新版本
|
||||||
try {
|
try {
|
||||||
// runtime.storageController.clearData(ClearFlags.ALL)
|
// runtime.storageController.clearData(ClearFlags.ALL)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue