1
0
Fork 0

Function to add a new link to a link group

This commit is contained in:
Ryan Mwangi 2024-10-12 01:09:05 +03:00
parent 77136f1a14
commit 5a00247eef
1 changed files with 11 additions and 0 deletions

View File

@ -119,6 +119,17 @@ function addLinkGroup(name) {
return newLinkGroup; return newLinkGroup;
} }
// Function to add a new link to a link group
function addLinkToGroup(linkGroup, url, prefix, overrideSummary) {
const newLink = {
url,
prefix,
overrideSummary
};
linkGroup.links.push(newLink);
return newLink;
}
// Function to update the merged calendar // Function to update the merged calendar
async function updateMergedCalendar(){ async function updateMergedCalendar(){
try { try {