diff options
author | 2021-09-27 14:37:57 +0530 | |
---|---|---|
committer | 2021-09-27 14:37:57 +0530 | |
commit | 576b9413dd4f40652b94b8d4eb1edb80178b216c (patch) | |
tree | 533208e7e2b8c4ea893fd400303e6c881a8f37fc /src/features/workspaces/components | |
parent | refactor: remove references 'Ferdi.ipcRenderer' in recipes - create an abstra... (diff) | |
download | ferdium-app-576b9413dd4f40652b94b8d4eb1edb80178b216c.tar.gz ferdium-app-576b9413dd4f40652b94b8d4eb1edb80178b216c.tar.zst ferdium-app-576b9413dd4f40652b94b8d4eb1edb80178b216c.zip |
refactor: remove optional parameters from 'popup' invocation which was tying us into 'electron/remote'
Diffstat (limited to 'src/features/workspaces/components')
-rw-r--r-- | src/features/workspaces/components/WorkspaceDrawerItem.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/workspaces/components/WorkspaceDrawerItem.js b/src/features/workspaces/components/WorkspaceDrawerItem.js index 7df2b60be..4afb9c108 100644 --- a/src/features/workspaces/components/WorkspaceDrawerItem.js +++ b/src/features/workspaces/components/WorkspaceDrawerItem.js | |||
@@ -1,4 +1,4 @@ | |||
1 | import { Menu, getCurrentWindow } from '@electron/remote'; | 1 | import { Menu } from '@electron/remote'; |
2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
3 | import PropTypes from 'prop-types'; | 3 | import PropTypes from 'prop-types'; |
4 | import { observer } from 'mobx-react'; | 4 | import { observer } from 'mobx-react'; |
@@ -119,7 +119,7 @@ class WorkspaceDrawerItem extends Component { | |||
119 | ])} | 119 | ])} |
120 | onClick={onClick} | 120 | onClick={onClick} |
121 | onContextMenu={() => | 121 | onContextMenu={() => |
122 | onContextMenuEditClick && contextMenu.popup(getCurrentWindow()) | 122 | onContextMenuEditClick && contextMenu.popup() |
123 | } | 123 | } |
124 | data-tip={`${ | 124 | data-tip={`${ |
125 | shortcutIndex <= 9 | 125 | shortcutIndex <= 9 |