Skip to content

Commit 7ef3843

Browse files
mrsteamfistChristopher Wang
andauthored
Forgot to do rename of details to options (#13)
Co-authored-by: Christopher Wang <[email protected]>
1 parent ed196a9 commit 7ef3843

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

BrowserWindow.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ BOOL BrowserWindow::InitInstance(HINSTANCE hInstance, int nCmdShow)
186186
// tabs will be created from this environment and kept isolated from the
187187
// browser UI. This enviroment is created first so the UI can request new
188188
// tabs when it's ready.
189-
HRESULT hr = CreateCoreWebView2EnvironmentWithDetails(nullptr, userDataDirectory.c_str(),
190-
L"", Callback<ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler>(
189+
HRESULT hr = CreateCoreWebView2EnvironmentWithOptions(nullptr, userDataDirectory.c_str(),
190+
nullptr, Callback<ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler>(
191191
[this](HRESULT result, ICoreWebView2Environment* env) -> HRESULT
192192
{
193193
RETURN_IF_FAILED(result);
@@ -220,8 +220,8 @@ HRESULT BrowserWindow::InitUIWebViews()
220220

221221
// Create WebView environment for browser UI. A separate data directory is
222222
// used to isolate the browser UI from web content requested by the user.
223-
return CreateCoreWebView2EnvironmentWithDetails(nullptr, browserDataDirectory.c_str(),
224-
L"", Callback<ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler>(
223+
return CreateCoreWebView2EnvironmentWithOptions(nullptr, browserDataDirectory.c_str(),
224+
nullptr, Callback<ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler>(
225225
[this](HRESULT result, ICoreWebView2Environment* env) -> HRESULT
226226
{
227227
// Environment is ready, create the WebView

0 commit comments

Comments
 (0)