aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/skype
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-05 15:14:28 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-09-05 18:00:26 +0530
commita57a4edcb648d025254ede4d18d267b887ad0b8b (patch)
treec8b75e58cf108a55608f729218885abdb07fd42d /recipes/skype
parentAdd ability to use self-hosted option for 'youtrack' service (fixes #671) (diff)
downloadferdium-recipes-a57a4edcb648d025254ede4d18d267b887ad0b8b.tar.gz
ferdium-recipes-a57a4edcb648d025254ede4d18d267b887ad0b8b.tar.zst
ferdium-recipes-a57a4edcb648d025254ede4d18d267b887ad0b8b.zip
Remove dependency on 'require' of 'electron' and 'electron/remote' modules.
Instead, use the exposed content from the recipe model in main ferdi.
Diffstat (limited to 'recipes/skype')
-rw-r--r--recipes/skype/package.json2
-rw-r--r--recipes/skype/webview.js4
2 files changed, 2 insertions, 4 deletions
diff --git a/recipes/skype/package.json b/recipes/skype/package.json
index 342621c..5d23929 100644
--- a/recipes/skype/package.json
+++ b/recipes/skype/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "skype", 2 "id": "skype",
3 "name": "Skype", 3 "name": "Skype",
4 "version": "3.1.1", 4 "version": "3.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://web.skype.com/", 7 "serviceURL": "https://web.skype.com/",
diff --git a/recipes/skype/webview.js b/recipes/skype/webview.js
index 6e84d78..dd867ea 100644
--- a/recipes/skype/webview.js
+++ b/recipes/skype/webview.js
@@ -2,8 +2,6 @@ const _path = _interopRequireDefault(require('path'));
2 2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5const { remote: { BrowserWindow } } = require('electron');
6
7module.exports = (Ferdi, settings) => { 5module.exports = (Ferdi, settings) => {
8 const getMessages = function getMessages() { 6 const getMessages = function getMessages() {
9 let count = 0; 7 let count = 0;
@@ -44,7 +42,7 @@ module.exports = (Ferdi, settings) => {
44 event.stopPropagation(); 42 event.stopPropagation();
45 // TODO: Can we send an ipc event 'open-browser-window' to open the child window? (see the slack recipe for how to send an ipc message) 43 // TODO: Can we send an ipc event 'open-browser-window' to open the child window? (see the slack recipe for how to send an ipc message)
46 // TODO: Can we change the slack recipe to add a clickHandler for screensharing/video calls? (https://github.com/getferdi/ferdi/issues/1697) 44 // TODO: Can we change the slack recipe to add a clickHandler for screensharing/video calls? (https://github.com/getferdi/ferdi/issues/1697)
47 const win = new BrowserWindow({ 45 const win = new Ferdi.BrowserWindow({
48 width: 800, 46 width: 800,
49 height: window.innerHeight, 47 height: window.innerHeight,
50 minWidth: 600, 48 minWidth: 600,