diff --git a/plugins/domains/google.com/google.calendar.js b/plugins/domains/google.com/google.calendar.js index 3f2755873..f9517af16 100644 --- a/plugins/domains/google.com/google.calendar.js +++ b/plugins/domains/google.com/google.calendar.js @@ -1,16 +1,16 @@ export default { re: [ - /^https?:\/\/(?:www|calendar)\.google\.com\/calendar\/(?:u\/\d+\/)?embed\/?\?(.+)$/i + /^https?:\/\/(?:www|calendar)\.google\.com\/calendar\/(?:u\/\d+\/)?embed\/?\?(?:.+)$/i ], mixins: ['*'], - getLink: function(urlMatch) { + getLink: function(url) { return { - href: 'https://www.google.com/calendar/embed?' + urlMatch[1] + '&via=iframely', + href: url, type: CONFIG.T.text_html, - rel: CONFIG.R.reader, + rel: [CONFIG.R.iframely, CONFIG.R.reader], "aspect-ratio": 800 / 600 } },