From 13877ce2c8d0aeaf2cdb9799992d4bed93e1b3d1 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 11 May 2018 13:05:05 -0500 Subject: [PATCH] Fix routingId type Previous phrasing confused electron-typescript-definitions, thinking that routingId was of type `unique` :smiley: --- docs/api/web-frame.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/api/web-frame.md b/docs/api/web-frame.md index 20eaea77a953..72fda772d938 100644 --- a/docs/api/web-frame.md +++ b/docs/api/web-frame.md @@ -237,10 +237,10 @@ renderer process. ### `webFrame.findFrameByRoutingId(routingId)` -* `routingId` Integer - A unique frame id in the current renderer process. - Routing IDs can be retrieved from `WebFrame` instances (`webFrame.routingId`) - and are also passed by frame specific `WebContents` navigation events (e.g. - `did-frame-navigate`) +* `routingId` Integer - An `Integer` representing the unique frame id in the + current renderer process. Routing IDs can be retrieved from `WebFrame` + instances (`webFrame.routingId`) and are also passed by frame + specific `WebContents` navigation events (e.g. `did-frame-navigate`) Returns `WebFrame` - that has the supplied `routingId`, `null` if not found. @@ -276,5 +276,6 @@ current renderer process. ### `webFrame.routingId` -A unique frame id in the current renderer process. Distinct WebFrame instances -that refer to the same underlying frame will have the same `routingId`. \ No newline at end of file +An `Integer` representing the unique frame id in the current renderer process. +Distinct WebFrame instances that refer to the same underlying frame will have +the same `routingId`.