Fix WebView2 data path

This commit is contained in:
Paddy Xu
2021-01-10 17:18:43 +01:00
parent 14394eb1ce
commit 6a0c116bd4
3 changed files with 8 additions and 4 deletions

View File

@@ -39,7 +39,13 @@ namespace QuickLook.Plugin.HtmlViewer
}
else
{
_webView = new WebView2();
_webView = new WebView2
{
CreationProperties = new CoreWebView2CreationProperties
{
UserDataFolder = Path.Combine(App.LocalDataPath, @"WebView2_Data\\")
}
};
_webView.NavigationStarting += NavigationStarting_CancelNavigation;
Content = _webView;
}