diff --git a/browser/api/lib/browser-window.coffee b/browser/api/lib/browser-window.coffee index 8503d8a437..38946c5500 100644 --- a/browser/api/lib/browser-window.coffee +++ b/browser/api/lib/browser-window.coffee @@ -34,7 +34,8 @@ BrowserWindow::restart = -> @loadUrl(@getUrl()) BrowserWindow::setMenu = (menu) -> - throw new Error('BrowserWindow.setMenu is only available on Windows') unless process.platform is 'win32' + if process.platform is 'darwin' + throw new Error('BrowserWindow.setMenu is not available on OS X') throw new TypeError('Invalid menu') unless menu?.constructor?.name is 'Menu'