Skip to content

Commit 98c8ec5

Browse files
author
Diana Qu
committed
dont use staging
1 parent 246c65d commit 98c8ec5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

specs/GetEnvironment.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ void SettingsComponent::SetBlockImages(bool blockImages)
4040
// If put_Response is not called, the request will continue as normal.
4141
wil::com_ptr<ICoreWebView2WebResourceResponse> response;
4242
// Environment Usage
43-
wil::com_ptr<ICoreWebView2Staging> m_webViewstaging =
44-
m_webView.try_query<ICoreWebView2Staging>();
4543
wil::com_ptr<ICoreWebView2Environment> environment;
46-
CHECK_FAILURE(m_webViewstaging->get_Environment(&environment));
44+
CHECK_FAILURE(m_webView->get_Environment(&environment));
4745
CHECK_FAILURE(environment->CreateWebResourceResponse(
4846
nullptr, 403 /*NoContent*/, L"Blocked", L"", &response));
4947
CHECK_FAILURE(args->put_Response(response.get()));

0 commit comments

Comments
 (0)