Skip to content

Commit

Permalink
domains: improve google.calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Aug 16, 2024
1 parent 65ad764 commit 9831050
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/domains/google.com/google.calendar.js
Original file line number Diff line number Diff line change
@@ -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
}
},
Expand Down

0 comments on commit 9831050

Please sign in to comment.