aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/services/tabs/TabItem.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/services/tabs/TabItem.js')
-rw-r--r--src/components/services/tabs/TabItem.js8
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 @@
1import { remote } from 'electron'; 1import {
2 Menu, dialog, app, getCurrentWindow,
3} from '@electron/remote';
2import React, { Component } from 'react'; 4import React, { Component } from 'react';
3import { defineMessages, intlShape } from 'react-intl'; 5import { defineMessages, intlShape } from 'react-intl';
4import PropTypes from 'prop-types'; 6import PropTypes from 'prop-types';
@@ -14,8 +16,6 @@ import { ctrlKey, cmdKey } from '../../../environment';
14 16
15const IS_SERVICE_DEBUGGING_ENABLED = (localStorage.getItem('debug') || '').includes('Ferdi:Service'); 17const IS_SERVICE_DEBUGGING_ENABLED = (localStorage.getItem('debug') || '').includes('Ferdi:Service');
16 18
17const { Menu, dialog, app } = remote;
18
19const messages = defineMessages({ 19const 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