Remove webcals support

The webcals is not officially registered (it's only assumed to be webcal
over https), and it seems [1] some clients
don't support it.

Closes #2416 and #3050 and also related to #2197

[1] https://github.com/nextcloud/calendar/issues/2416

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-06-13 16:16:04 +02:00
parent 852d488474
commit 5ce3963778
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 2 additions and 12 deletions

View File

@ -155,12 +155,7 @@ export default {
const rootURL = generateRemoteUrl('dav')
const url = new URL(this.calendar.url + '?export', rootURL)
if (url.protocol === 'http:') {
url.protocol = 'webcal:'
}
if (url.protocol === 'https:') {
url.protocol = 'webcals:'
}
url.protocol = 'webcal:'
// copy link for calendar to clipboard
try {

View File

@ -69,12 +69,7 @@ export default {
const rootURL = generateRemoteUrl('dav')
const url = new URL(calendar.url + '?export', rootURL)
if (url.protocol === 'http:') {
url.protocol = 'webcal:'
}
if (url.protocol === 'https:') {
url.protocol = 'webcals:'
}
url.protocol = 'webcal:'
// copy link for calendar to clipboard
try {