blob: 9937becc820a6319963c59c5343d5ea78e2f2d17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
const _path = _interopRequireDefault(require('path'));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = Ferdium => {
// if the user is on googlecalendar landing page, go to the login page.
if (
location.hostname == 'workspace.google.com' &&
location.href.includes('products/calendar/')
) {
location.href =
'https://accounts.google.com/AccountChooser?continue=https://calendar.google.com/u/0/';
}
Ferdium.injectCSS(_path.default.join(__dirname, 'calendar.css'));
Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js'));
};
|