aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes/googlecalendar/package.json2
-rw-r--r--recipes/googlecalendar/webview.js8
2 files changed, 9 insertions, 1 deletions
diff --git a/recipes/googlecalendar/package.json b/recipes/googlecalendar/package.json
index 918f460..f6232cb 100644
--- a/recipes/googlecalendar/package.json
+++ b/recipes/googlecalendar/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "googlecalendar", 2 "id": "googlecalendar",
3 "name": "Google Calendar", 3 "name": "Google Calendar",
4 "version": "2.3.1", 4 "version": "2.3.2",
5 "license": "MIT", 5 "license": "MIT",
6 "aliases": [ 6 "aliases": [
7 "google-calendar", 7 "google-calendar",
diff --git a/recipes/googlecalendar/webview.js b/recipes/googlecalendar/webview.js
index ef03ce2..9937bec 100644
--- a/recipes/googlecalendar/webview.js
+++ b/recipes/googlecalendar/webview.js
@@ -3,6 +3,14 @@ const _path = _interopRequireDefault(require('path'));
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5module.exports = Ferdium => { 5module.exports = Ferdium => {
6 // if the user is on googlecalendar landing page, go to the login page.
7 if (
8 location.hostname == 'workspace.google.com' &&
9 location.href.includes('products/calendar/')
10 ) {
11 location.href =
12 'https://accounts.google.com/AccountChooser?continue=https://calendar.google.com/u/0/';
13 }
6 Ferdium.injectCSS(_path.default.join(__dirname, 'calendar.css')); 14 Ferdium.injectCSS(_path.default.join(__dirname, 'calendar.css'));
7 Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); 15 Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js'));
8}; 16};