From ce19c2c0adf305516fd40136ed0f5165bbd2e91f Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 7 Jun 2016 13:09:54 -0700 Subject: [PATCH] Document webContents.showDefinitionForSelection --- docs/api/browser-window.md | 2 +- docs/api/web-contents.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index c133a49beda..8b850b5c438 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -885,7 +885,7 @@ The `flags` is an array that can include following `String`s: ### `win.showDefinitionForSelection()` _OS X_ -Shows pop-up dictionary that searches the selected word on the page. +Same as `webContents.showDefinitionForSelection()`. ### `win.setIcon(icon)` _Windows_ _Linux_ diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index b9ff9d7c486..60c736e0041 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -957,6 +957,10 @@ win.webContents.on('did-finish-load', () => { }); ``` +### `webContents.showDefinitionForSelection()` _OS X_ + +Shows pop-up dictionary that searches the selected word on the page. + ## Instance Properties `WebContents` objects also have the following properties: