Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tags = '#' + tags
tags = ' #civicpatterns #africanCOMMONS #commons'
switch (network) {
case 'facebook-share':
VanillaSharing.fbShare({
url: url,
redirectUri: redirectUri,
hashtag: tags,
quote: title,
fbAppId: fbAppId
})
break
case 'facebook-like':
VanillaSharing.fbFeed({
url: url,
redirectUri: redirectUri,
fbAppId: fbAppId
})
break
case 'twitter':
VanillaSharing.tw({
url: url,
title: title + tags
})
break
default:
}
return false
})