mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add "Open Recent" submenu to default
This commit is contained in:
@@ -174,6 +174,14 @@ Menu.buildFromTemplate = function (template) {
|
||||
return menu
|
||||
}
|
||||
|
||||
Menu.noteNewRecentDocumentURL = function (url) {
|
||||
if (process.platform === 'darwin') {
|
||||
bindings.noteNewRecentDocumentURL(url);
|
||||
} else {
|
||||
throw new Error('Not supported')
|
||||
}
|
||||
}
|
||||
|
||||
/* Helper Functions */
|
||||
|
||||
// Search between separators to find a radio menu item and return its group id
|
||||
|
||||
Reference in New Issue
Block a user