Compare commits

..

No commits in common. "65520b70f2f42405b3cd5d86c3a7eaeb387b3b7e" and "6c3fa294d6f47637e87c75d83e8a08fae501d2db" have entirely different histories.

View file

@ -41,19 +41,14 @@ const form = document.getElementById('merge-form');
},
body: JSON.stringify({ calendars: calendarsData })
})
.then((response) => {
if (!response.ok) {
return response.json().then(err => { throw err; });
}
return response.json();
})
.then((response) => response.json())
.then((data) => {
result.innerHTML = `Merged calendar URL: <a href="${data.url}">${data.url}</a>`;
console.log('Links added successfully!');
})
.catch((error) => {
console.error('Error:', error);
result.innerHTML = `Error merging calendars: ${error.message}`
console.error(error);
result.innerHTML = 'Error merging calendars';
});
});