Skip to content

Commit 14062fe

Browse files
committed
Updated links to reference content
1 parent 0e6587d commit 14062fe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

SampleApps/WebView2APISample/AppWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ void AppWindow::CloseWebView(bool cleanupUserDataFolder)
861861
// developers specify userDataFolder during WebView environment
862862
// creation, they would need to pass in that explicit value here.
863863
// For more information about userDataFolder:
864-
// https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/0-9-622/webview2-idl#createcorewebview2environmentwithoptions
864+
// https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/webview2-idl#createcorewebview2environmentwithoptions
865865
WCHAR userDataFolder[MAX_PATH] = L"";
866866
// Obtain the absolute path for relative paths that include "./" or "../"
867867
_wfullpath(

SampleApps/WebView2APISample/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ The section below briefly explains some of the key functions in the Sample App.
113113

114114
#### InitializeWebView()
115115

116-
In the AppWindow file, we use the InitializeWebView() function to create the WebView2 environment by using [CreateCoreWebView2EnvironmentWithOptions](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/0-9-622/webview2-idl#createcorewebview2environmentwithoptions).
116+
In the AppWindow file, we use the InitializeWebView() function to create the WebView2 environment by using [CreateCoreWebView2EnvironmentWithOptions](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/webview2-idl#createcorewebview2environmentwithoptions).
117117

118118
Once we've created the environment, we create the WebView by using `CreateCoreWebView2Controller`.
119119

@@ -171,7 +171,7 @@ This callback function is passed to `CreateCoreWebView2Controller` in `Initializ
171171
172172
This function is called within `CreateCoreWebView2Controller`. It sets up some of the event handlers used by the application, and adds them to the WebView.
173173
174-
To read more about event handlers in WebView2, you can refer to this [documentation](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/0-9-622/icorewebview2).
174+
To read more about event handlers in WebView2, you can refer to this [documentation](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2).
175175
176176
Below is a code snippet from `RegisterEventHandlers()`, where we set up an event handler for the `NewWindowRequested` event. This event is fired when JavaScript in the webpage calls `window.open()`, and our handler makes a new `AppWindow` and passes the new window's WebView back to the browser so it can return it from the `window.open()` call. Unlike our calls to `CreateCoreWebView2EnvironmentWithOptions` and `CreateCoreWebView2Controller`, instead of providing a method for the callback, we just provide a C++ lambda right then and there.
177177
@@ -231,7 +231,7 @@ The text under Posting Messages should now be blue.
231231

232232
Here's how it works:
233233

234-
1. In `ScriptComponent.cpp`, we use [PostWebMessageAsJson](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/0-9-622/icorewebview2#postwebmessageasjson) to post user input to the `ScenarioMessage.html` web application.
234+
1. In `ScriptComponent.cpp`, we use [PostWebMessageAsJson](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2#postwebmessageasjson) to post user input to the `ScenarioMessage.html` web application.
235235

236236
```cpp
237237
// Prompt the user for some JSON and then post it as a web message.
@@ -281,7 +281,7 @@ function SetTitleText() {
281281
}
282282
```
283283

284-
2. Within `ScenarioWebMessage.cpp`, we use [add_WebMessageReceived](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/0-9-622/icorewebview2#add_webmessagereceived) to register the event handler. When we receive the event, after validating the input, we change the title of the App Window.
284+
2. Within `ScenarioWebMessage.cpp`, we use [add_WebMessageReceived](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2#add_webmessagereceived) to register the event handler. When we receive the event, after validating the input, we change the title of the App Window.
285285

286286
```cpp
287287
// Setup the web message received event handler before navigating to
@@ -328,7 +328,7 @@ function GetWindowBounds() {
328328
}
329329
```
330330

331-
2. Within `ScenarioWebMessage.cpp`, we use [add_WebMessageReceived](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/0-9-622/icorewebview2#add_webmessagereceived) to register the received event handler. After validating the input, the event handler gets window bounds from the App Window. [PostWebMessageAsJson](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/0-9-622/icorewebview2#postwebmessageasjson) sends the bounds to the web application.
331+
2. Within `ScenarioWebMessage.cpp`, we use [add_WebMessageReceived](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2#add_webmessagereceived) to register the received event handler. After validating the input, the event handler gets window bounds from the App Window. [PostWebMessageAsJson](https://docs.microsoft.com/microsoft-edge/webview2/reference/win32/icorewebview2#postwebmessageasjson) sends the bounds to the web application.
332332

333333
```cpp
334334
if (message.compare(L"GetWindowBounds") == 0)

0 commit comments

Comments
 (0)