diff options
Diffstat (limited to 'recipes/jitsi')
-rw-r--r-- | recipes/jitsi/index.js | 13 | ||||
-rw-r--r-- | recipes/jitsi/package.json | 2 | ||||
-rw-r--r-- | recipes/jitsi/webview.js | 8 |
3 files changed, 17 insertions, 6 deletions
diff --git a/recipes/jitsi/index.js b/recipes/jitsi/index.js index 5f22c17..7b8486c 100644 --- a/recipes/jitsi/index.js +++ b/recipes/jitsi/index.js | |||
@@ -1,5 +1,8 @@ | |||
1 | module.exports = Ferdium => class Jitsi extends Ferdium { | 1 | module.exports = Ferdium => |
2 | overrideUserAgent() { | 2 | class Jitsi extends Ferdium { |
3 | return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); | 3 | overrideUserAgent() { |
4 | } | 4 | return window.navigator.userAgent |
5 | }; | 5 | .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '') |
6 | .trim(); | ||
7 | } | ||
8 | }; | ||
diff --git a/recipes/jitsi/package.json b/recipes/jitsi/package.json index 0e4cf90..4842791 100644 --- a/recipes/jitsi/package.json +++ b/recipes/jitsi/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "jitsi", | 2 | "id": "jitsi", |
3 | "name": "Jitsi Meet", | 3 | "name": "Jitsi Meet", |
4 | "version": "1.2.0", | 4 | "version": "1.3.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/sampathBlam/ferdi-jitsi", | 6 | "repository": "https://github.com/sampathBlam/ferdi-jitsi", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/jitsi/webview.js b/recipes/jitsi/webview.js index 6e0e1e9..847624e 100644 --- a/recipes/jitsi/webview.js +++ b/recipes/jitsi/webview.js | |||
@@ -1,3 +1,9 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
1 | const NOTIFICATION_BADGE_CLASS = '.badge-round'; | 7 | const NOTIFICATION_BADGE_CLASS = '.badge-round'; |
2 | 8 | ||
3 | module.exports = Ferdium => { | 9 | module.exports = Ferdium => { |
@@ -12,4 +18,6 @@ module.exports = Ferdium => { | |||
12 | }; | 18 | }; |
13 | 19 | ||
14 | Ferdium.loop(getMessages); | 20 | Ferdium.loop(getMessages); |
21 | |||
22 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
15 | }; | 23 | }; |