Skip to content

Commit 684a1b4

Browse files
committed
Fix issue with CoreWebView2Environment initialization
1 parent 3b83d88 commit 684a1b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tiefsee/WebWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public class AppInfo {
292292
/// 取得 CoreWebView2Environment
293293
/// </summary>
294294
public static async Task<CoreWebView2Environment> GetCoreWebView2Environment() {
295-
if (_webView2Environment != null) {
295+
if (_webView2Environment == null) {
296296
// --disable-web-security 允許跨域請求
297297
// --disable-features=msWebOOUI,msPdfOOUI 禁止迷你選單
298298
// --user-agent 覆寫userAgent

0 commit comments

Comments
 (0)