mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
perf: 优化安卓WebView性能与调试配置
MainActivity中为WebView启用硬件加速、DOM存储、数据库及默认缓存模式,提升性能与兼容性。capacitor.config.ts开启webContentsDebugging,便于调试排查问题。
This commit is contained in:
@@ -12,8 +12,8 @@ const config: CapacitorConfig = {
|
||||
keystorePath: undefined,
|
||||
keystoreAlias: undefined
|
||||
},
|
||||
// 禁用 WebView 文本缩放,防止系统字体设置影响布局
|
||||
webContentsDebuggingEnabled: false,
|
||||
// 启用 WebView 调试,方便排查问题
|
||||
webContentsDebuggingEnabled: true,
|
||||
allowMixedContent: false
|
||||
},
|
||||
plugins: {
|
||||
|
||||
Reference in New Issue
Block a user