diff options
Diffstat (limited to 'src/components/services/tabs')
-rw-r--r-- | src/components/services/tabs/TabItem.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/services/tabs/TabItem.js b/src/components/services/tabs/TabItem.js index 24bbe7939..d4714a809 100644 --- a/src/components/services/tabs/TabItem.js +++ b/src/components/services/tabs/TabItem.js | |||
@@ -1,4 +1,6 @@ | |||
1 | import { remote } from 'electron'; | 1 | import { |
2 | Menu, dialog, app, getCurrentWindow, | ||
3 | } from '@electron/remote'; | ||
2 | import React, { Component } from 'react'; | 4 | import React, { Component } from 'react'; |
3 | import { defineMessages, intlShape } from 'react-intl'; | 5 | import { defineMessages, intlShape } from 'react-intl'; |
4 | import PropTypes from 'prop-types'; | 6 | import PropTypes from 'prop-types'; |
@@ -14,8 +16,6 @@ import { ctrlKey, cmdKey } from '../../../environment'; | |||
14 | 16 | ||
15 | const IS_SERVICE_DEBUGGING_ENABLED = (localStorage.getItem('debug') || '').includes('Ferdi:Service'); | 17 | const IS_SERVICE_DEBUGGING_ENABLED = (localStorage.getItem('debug') || '').includes('Ferdi:Service'); |
16 | 18 | ||
17 | const { Menu, dialog, app } = remote; | ||
18 | |||
19 | const messages = defineMessages({ | 19 | const messages = defineMessages({ |
20 | reload: { | 20 | reload: { |
21 | id: 'tabs.item.reload', | 21 | id: 'tabs.item.reload', |
@@ -236,7 +236,7 @@ const styles = { | |||
236 | 'is-disabled': !service.isEnabled, | 236 | 'is-disabled': !service.isEnabled, |
237 | })} | 237 | })} |
238 | onClick={clickHandler} | 238 | onClick={clickHandler} |
239 | onContextMenu={() => menu.popup(remote.getCurrentWindow())} | 239 | onContextMenu={() => menu.popup(getCurrentWindow())} |
240 | data-tip={`${service.name} ${shortcutIndex <= 9 ? `(${ctrlKey}+${shortcutIndex})` : ''}`} | 240 | data-tip={`${service.name} ${shortcutIndex <= 9 ? `(${ctrlKey}+${shortcutIndex})` : ''}`} |
241 | > | 241 | > |
242 | <img | 242 | <img |