Skip to content

Commit

Permalink
Fix ZoomLinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Chr1s70ph committed Nov 5, 2021
1 parent cc1a3df commit 9a9e658
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/iCalReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,14 @@ function extractZoomLinks(eventLinkString: string): string {
: eventLinkString

//strip all html tags and encode as URI
let link = encodeURI(eventLinkString.replace(/(\<.*?\>)/g, ""))
let link = eventLinkString.replace(/(\<.*?\>)/g, "")

//remove "#success" string, to automatically open zoom
return link.includes("#success") ? link.split("#success")[0] : link
return link.includes("#success")
? link.split("#success")[0]
: link.includes("id=")
? link.split("id=")[0]
: link
}

/**
Expand Down

1 comment on commit 9a9e658

@Chr1s70ph
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closes #78

Please sign in to comment.