diff options
Diffstat (limited to 'recipes/skype')
-rw-r--r-- | recipes/skype/index.js | 4 | ||||
-rw-r--r-- | recipes/skype/package.json | 2 | ||||
-rw-r--r-- | recipes/skype/webview.js | 14 |
3 files changed, 10 insertions, 10 deletions
diff --git a/recipes/skype/index.js b/recipes/skype/index.js index 7ea3060..425683a 100644 --- a/recipes/skype/index.js +++ b/recipes/skype/index.js | |||
@@ -1,5 +1,5 @@ | |||
1 | module.exports = (Ferdi) => class Messenger extends Ferdi { | 1 | module.exports = (Ferdium) => class Messenger extends Ferdium { |
2 | overrideUserAgent() { | 2 | overrideUserAgent() { |
3 | return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); | 3 | return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); |
4 | } | 4 | } |
5 | }; | 5 | }; |
diff --git a/recipes/skype/package.json b/recipes/skype/package.json index e519497..58aee4c 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.3.1", | 4 | "version": "3.4.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 d7d3ca6..a488699 100644 --- a/recipes/skype/webview.js +++ b/recipes/skype/webview.js | |||
@@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path')); | |||
2 | 2 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | 4 | ||
5 | module.exports = (Ferdi, settings) => { | 5 | module.exports = (Ferdium, settings) => { |
6 | const getMessages = () => { | 6 | const getMessages = () => { |
7 | let count = 0; | 7 | let count = 0; |
8 | const container = document.querySelector('[role="tablist"] > button > div'); | 8 | const container = document.querySelector('[role="tablist"] > button > div'); |
@@ -16,19 +16,19 @@ module.exports = (Ferdi, settings) => { | |||
16 | if (elementContainer) { | 16 | if (elementContainer) { |
17 | const element = elementContainer.querySelector('[data-text-as-pseudo-element]'); | 17 | const element = elementContainer.querySelector('[data-text-as-pseudo-element]'); |
18 | if (element && element.dataset) { | 18 | if (element && element.dataset) { |
19 | count = Ferdi.safeParseInt(element.dataset.textAsPseudoElement); | 19 | count = Ferdium.safeParseInt(element.dataset.textAsPseudoElement); |
20 | } | 20 | } |
21 | } | 21 | } |
22 | } | 22 | } |
23 | } | 23 | } |
24 | 24 | ||
25 | Ferdi.setBadge(count); | 25 | Ferdium.setBadge(count); |
26 | }; | 26 | }; |
27 | 27 | ||
28 | Ferdi.loop(getMessages); | 28 | Ferdium.loop(getMessages); |
29 | 29 | ||
30 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 30 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
31 | Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); | 31 | Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); |
32 | 32 | ||
33 | // TODO: This whole block is duplicated between the 'discord' and 'skype' recipes - reuse | 33 | // TODO: This whole block is duplicated between the 'discord' and 'skype' recipes - reuse |
34 | document.addEventListener('click', event => { | 34 | document.addEventListener('click', event => { |
@@ -43,7 +43,7 @@ module.exports = (Ferdi, settings) => { | |||
43 | event.stopPropagation(); | 43 | event.stopPropagation(); |
44 | // 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) | 44 | // 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) |
45 | // TODO: Can we change the slack recipe to add a clickHandler for screensharing/video calls? (https://github.com/ferdium/ferdium-app/issues/1697) | 45 | // TODO: Can we change the slack recipe to add a clickHandler for screensharing/video calls? (https://github.com/ferdium/ferdium-app/issues/1697) |
46 | let win = new Ferdi.BrowserWindow({ | 46 | let win = new Ferdium.BrowserWindow({ |
47 | width: 800, | 47 | width: 800, |
48 | height: window.innerHeight, | 48 | height: window.innerHeight, |
49 | minWidth: 600, | 49 | minWidth: 600, |