Skip to content

Commit 13877ce

Browse files
committed
Fix routingId type
Previous phrasing confused electron-typescript-definitions, thinking that routingId was of type `unique` 😃
1 parent 8acbfca commit 13877ce

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/api/web-frame.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ renderer process.
237237

238238
### `webFrame.findFrameByRoutingId(routingId)`
239239

240-
* `routingId` Integer - A unique frame id in the current renderer process.
241-
Routing IDs can be retrieved from `WebFrame` instances (`webFrame.routingId`)
242-
and are also passed by frame specific `WebContents` navigation events (e.g.
243-
`did-frame-navigate`)
240+
* `routingId` Integer - An `Integer` representing the unique frame id in the
241+
current renderer process. Routing IDs can be retrieved from `WebFrame`
242+
instances (`webFrame.routingId`) and are also passed by frame
243+
specific `WebContents` navigation events (e.g. `did-frame-navigate`)
244244

245245
Returns `WebFrame` - that has the supplied `routingId`, `null` if not found.
246246

@@ -276,5 +276,6 @@ current renderer process.
276276

277277
### `webFrame.routingId`
278278

279-
A unique frame id in the current renderer process. Distinct WebFrame instances
280-
that refer to the same underlying frame will have the same `routingId`.
279+
An `Integer` representing the unique frame id in the current renderer process.
280+
Distinct WebFrame instances that refer to the same underlying frame will have
281+
the same `routingId`.

0 commit comments

Comments
 (0)