From 30b97f682c6eb8f927054b1768a8b75775da8dc7 Mon Sep 17 00:00:00 2001 From: Christopher Wang Date: Thu, 23 Apr 2020 20:37:49 -0700 Subject: [PATCH] Forgot to do rename of details to options --- BrowserWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BrowserWindow.cpp b/BrowserWindow.cpp index bc5b76f..e5b47be 100644 --- a/BrowserWindow.cpp +++ b/BrowserWindow.cpp @@ -186,8 +186,8 @@ BOOL BrowserWindow::InitInstance(HINSTANCE hInstance, int nCmdShow) // tabs will be created from this environment and kept isolated from the // browser UI. This enviroment is created first so the UI can request new // tabs when it's ready. - HRESULT hr = CreateCoreWebView2EnvironmentWithDetails(nullptr, userDataDirectory.c_str(), - L"", Callback( + HRESULT hr = CreateCoreWebView2EnvironmentWithOptions(nullptr, userDataDirectory.c_str(), + nullptr, Callback( [this](HRESULT result, ICoreWebView2Environment* env) -> HRESULT { RETURN_IF_FAILED(result); @@ -220,8 +220,8 @@ HRESULT BrowserWindow::InitUIWebViews() // Create WebView environment for browser UI. A separate data directory is // used to isolate the browser UI from web content requested by the user. - return CreateCoreWebView2EnvironmentWithDetails(nullptr, browserDataDirectory.c_str(), - L"", Callback( + return CreateCoreWebView2EnvironmentWithOptions(nullptr, browserDataDirectory.c_str(), + nullptr, Callback( [this](HRESULT result, ICoreWebView2Environment* env) -> HRESULT { // Environment is ready, create the WebView