mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-31 19:32:13 +08:00
fix: disable WebView2 general autofill (#7062)
This commit is contained in:
+1
-1
@@ -9,5 +9,5 @@
|
||||
|
||||
<details>
|
||||
<summary><strong> 🚀 优化改进 </strong></summary>
|
||||
|
||||
- 关闭 autofill 弹出窗口
|
||||
</details>
|
||||
|
||||
@@ -69,6 +69,7 @@ pub async fn build_new_window() -> Result<WebviewWindow, String> {
|
||||
.min_inner_size(MINIMAL_WIDTH, MINIMAL_HEIGHT)
|
||||
.visible(false) // 等待主题色准备好后再展示,避免启动色差
|
||||
.initialization_script(&initial_script)
|
||||
.general_autofill_enabled(false) // 禁用自动填充
|
||||
.on_page_load(move |window, payload| {
|
||||
if payload.event() != PageLoadEvent::Finished {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user