From 7297faf09a0fded7dc89735344c3cbdeeb68ef66 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 27 May 2014 14:20:22 +0800 Subject: [PATCH] :memo: Fix some old docs. --- docs/api/browser-window.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index ae0c8fe7e36..8624bc360aa 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -366,14 +366,14 @@ Returns whether the window is in kiosk mode. * `filename` String -__OS X Only__ Sets the pathname of the file the window represents, and the icon +__OS X Only:__ Sets the pathname of the file the window represents, and the icon of the file will show in window's title bar. ### BrowserWindow.setDocumentEdited(edited) * `edited` Boolean -__OS X Only__ Specifies whether the window’s document has been edited, and the +__OS X Only:__ Specifies whether the window’s document has been edited, and the icon in titlebar will become grey when set to `true`. ### BrowserWindow.openDevTools() @@ -422,12 +422,16 @@ Same with `webContents.loadUrl(url)`. ### BrowserWindow.reload() -Reloads the current url. +Same with `webContents.reload`. ### BrowserWindow.setMenu(menu) +* `menu` Menu + Sets the `menu` as the window top menu. +__Note:__ This API is not available on OS X. + ## Class: WebContents A `WebContents` is responsible for rendering and controlling a web page.