diff options
author | 2021-05-26 21:05:50 +0530 | |
---|---|---|
committer | 2021-05-26 21:05:50 +0530 | |
commit | 296ce5ce62bcde6888df291f97105fa912ed7d35 (patch) | |
tree | b28e7d2373f1020c1183469aa3a9feafecede569 /src/components/services/tabs | |
parent | Added new entry in context menu: 'Download image' (#1449) (diff) | |
download | ferdium-app-296ce5ce62bcde6888df291f97105fa912ed7d35.tar.gz ferdium-app-296ce5ce62bcde6888df291f97105fa912ed7d35.tar.zst ferdium-app-296ce5ce62bcde6888df291f97105fa912ed7d35.zip |
Replace 'remote' with 'electron/remote' (#1448)
* Locked new version of 'recipes' submodule with corresponding changes.
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 |