forked from ryanmwangi/CalMerger
Function to add a new link to a link group
This commit is contained in:
parent
77136f1a14
commit
5a00247eef
11
server.js
11
server.js
|
@ -119,6 +119,17 @@ function addLinkGroup(name) {
|
|||
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
|
||||
async function updateMergedCalendar(){
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue