diff --git a/atom/browser/api/lib/menu.coffee b/atom/browser/api/lib/menu.coffee index 80e0330943e7..af70af740aaf 100644 --- a/atom/browser/api/lib/menu.coffee +++ b/atom/browser/api/lib/menu.coffee @@ -134,8 +134,8 @@ Menu.setApplicationMenu = (menu) -> applicationMenu = menu # Keep a reference. if process.platform is 'darwin' + return if menu is null menu._callMenuWillShow() - throw new Error('You can not remove application menu') if menu is null bindings.setApplicationMenu menu else windows = BrowserWindow.getAllWindows()