src/applications/static-pages/widget-creators/social-share-links.js
Function openShareLink
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function openShareLink() {
const shareLinks = Array.from(document.querySelectorAll('.va-js-share-link'));
if (shareLinks.length > 0) {
const hasNavigatorShare = navigator.share !== undefined;