Skip to content

Commit

Permalink
Merge pull request #1456 from fwRelik/master
Browse files Browse the repository at this point in the history
fix: Set WebView2 user data path
  • Loading branch information
r0x0r committed Aug 31, 2024
2 parents 5694b6b + 3efcf1e commit 26db906
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webview/platforms/edgechromium.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def setup_webview2_environment(self):
def _callback(task):
self.web_view.EnsureCoreWebView2Async(task.Result)

environment = CoreWebView2Environment.CreateAsync()
environment = CoreWebView2Environment.CreateAsync(
userDataFolder=_settings['storage_path']
)
environment.ContinueWith(
Action[Task[CoreWebView2Environment]](_callback),
self.syncContextTaskScheduler,
Expand Down

0 comments on commit 26db906

Please sign in to comment.