diff options
author | Vijay A <avijayr@protonmail.com> | 2021-09-27 14:37:57 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-09-27 14:37:57 +0530 |
commit | 576b9413dd4f40652b94b8d4eb1edb80178b216c (patch) | |
tree | 533208e7e2b8c4ea893fd400303e6c881a8f37fc /src/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/components')
-rw-r--r-- | src/components/services/tabs/TabItem.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/services/tabs/TabItem.js b/src/components/services/tabs/TabItem.js index 84cef8c0e..35224631e 100644 --- a/src/components/services/tabs/TabItem.js +++ b/src/components/services/tabs/TabItem.js | |||
@@ -1,4 +1,4 @@ | |||
1 | import { Menu, dialog, app, getCurrentWindow } from '@electron/remote'; | 1 | import { Menu, dialog, app } from '@electron/remote'; |
2 | import React, { Component } from 'react'; | 2 | import React, { Component } from 'react'; |
3 | import { defineMessages, injectIntl } from 'react-intl'; | 3 | import { defineMessages, injectIntl } from 'react-intl'; |
4 | import PropTypes from 'prop-types'; | 4 | import PropTypes from 'prop-types'; |
@@ -300,7 +300,7 @@ class TabItem extends Component { | |||
300 | 'is-disabled': !service.isEnabled, | 300 | 'is-disabled': !service.isEnabled, |
301 | })} | 301 | })} |
302 | onClick={clickHandler} | 302 | onClick={clickHandler} |
303 | onContextMenu={() => menu.popup(getCurrentWindow())} | 303 | onContextMenu={() => menu.popup()} |
304 | data-tip={`${service.name} ${ | 304 | data-tip={`${service.name} ${ |
305 | shortcutIndex <= 9 | 305 | shortcutIndex <= 9 |
306 | ? `(${cmdOrCtrlShortcutKey(false)}+${shortcutIndex})` | 306 | ? `(${cmdOrCtrlShortcutKey(false)}+${shortcutIndex})` |