aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/skype/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/skype/webview.js')
-rw-r--r--recipes/skype/webview.js14
1 files changed, 7 insertions, 7 deletions
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
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5module.exports = (Ferdi, settings) => { 5module.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,