diff options
Diffstat (limited to 'recipes/zoho/webview.js')
-rw-r--r-- | recipes/zoho/webview.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/recipes/zoho/webview.js b/recipes/zoho/webview.js index 7c833a3..02a5039 100644 --- a/recipes/zoho/webview.js +++ b/recipes/zoho/webview.js | |||
@@ -2,9 +2,9 @@ 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) => { | 5 | module.exports = (Ferdium) => { |
6 | const getMessages = () => { | 6 | const getMessages = () => { |
7 | Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); | 7 | Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); |
8 | }; | 8 | }; |
9 | 9 | ||
10 | //Zoho uses different URLs for different regions. Find out which region the account belongs to and redirect to the correct URL. | 10 | //Zoho uses different URLs for different regions. Find out which region the account belongs to and redirect to the correct URL. |
@@ -18,6 +18,5 @@ module.exports = (Ferdi) => { | |||
18 | } | 18 | } |
19 | 19 | ||
20 | window.addEventListener('load', redirectRegion); | 20 | window.addEventListener('load', redirectRegion); |
21 | Ferdi.loop(getMessages); | 21 | Ferdium.loop(getMessages); |
22 | |||
23 | }; | 22 | }; |