diff options
Diffstat (limited to 'recipes/gotomeeting')
-rw-r--r-- | recipes/gotomeeting/index.js | 4 | ||||
-rw-r--r-- | recipes/gotomeeting/package.json | 2 | ||||
-rw-r--r-- | recipes/gotomeeting/webview.js | 9 |
3 files changed, 9 insertions, 6 deletions
diff --git a/recipes/gotomeeting/index.js b/recipes/gotomeeting/index.js index d779159..bde0ae0 100644 --- a/recipes/gotomeeting/index.js +++ b/recipes/gotomeeting/index.js | |||
@@ -1,5 +1,5 @@ | |||
1 | module.exports = Franz => class Gotomeeting extends Franz { | 1 | module.exports = Ferdi => class Gotomeeting extends Ferdi { |
2 | overrideUserAgent() { | 2 | overrideUserAgent() { |
3 | return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, ''); | 3 | return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, ''); |
4 | } | 4 | } |
5 | }; | 5 | }; |
diff --git a/recipes/gotomeeting/package.json b/recipes/gotomeeting/package.json index f64732c..b4e4ae0 100644 --- a/recipes/gotomeeting/package.json +++ b/recipes/gotomeeting/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "gotomeeting", | 2 | "id": "gotomeeting", |
3 | "name": "Go To Meeting", | 3 | "name": "Go To Meeting", |
4 | "version": "0.2.3", | 4 | "version": "0.3.0", |
5 | "repository": "https://github.com/tristanplouz/ferdi-recipe-gotomeeting.git", | 5 | "repository": "https://github.com/tristanplouz/ferdi-recipe-gotomeeting.git", |
6 | "license": "MIT", | 6 | "license": "MIT", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/gotomeeting/webview.js b/recipes/gotomeeting/webview.js index 6e0b370..097df0d 100644 --- a/recipes/gotomeeting/webview.js +++ b/recipes/gotomeeting/webview.js | |||
@@ -1,8 +1,11 @@ | |||
1 | const path = require('path'); | 1 | const _path = _interopRequireDefault(require('path')); |
2 | |||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
2 | 4 | ||
3 | module.exports = Ferdi => { | 5 | module.exports = Ferdi => { |
4 | Ferdi.injectCSS(path.join(__dirname, 'service.css')); | 6 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); |
7 | |||
5 | if (document.location.href.match('after')) { | 8 | if (document.location.href.match('after')) { |
6 | document.location.href = 'https://app.gotomeeting.com/home.html'; | 9 | document.location.href = 'https://app.gotomeeting.com/home.html'; |
7 | } | 10 | } |
8 | }; | 11 | }; |