(function(){ function norm(p){ p = p || ""; while (p.length > 1 && p.charAt(p.length - 1) === "/") p = p.slice(0, -1); return p.toLowerCase(); } function ensureMeta(selector, createAttr, createValue){ var el = document.querySelector(selector); if (!el) { el = document.createElement("meta"); el.setAttribute(createAttr, createValue); document.head.appendChild(el); } return el; } function run(){ var path = norm(location.pathname); var descriptions = { "/privacy-policy": "True North Health privacy policy: how we collect, use, store, and protect personal information for our patients and website visitors." }; if (descriptions[path]) { var d = ensureMeta('meta[name="description"]', "name", "description"); d.setAttribute("content", descriptions[path]); } var ogTitle = document.querySelector('meta[property="og:title"]'); var ogImage = document.querySelector('meta[property="og:image"]'); function copyIfMissing(sel, createAttr, createValue, source){ var srcContent = source ? source.getAttribute("content") : null; if (!srcContent) return; var el = document.querySelector(sel); if (!el) { el = document.createElement("meta"); el.setAttribute(createAttr, createValue); document.head.appendChild(el); } if (!el.getAttribute("content")) el.setAttribute("content", srcContent); } copyIfMissing('meta[name="twitter:title"]', "name", "twitter:title", ogTitle); copyIfMissing('meta[name="twitter:image"]', "name", "twitter:image", ogImage); } try { run(); } catch(e){} document.addEventListener("DOMContentLoaded", run); })();
Skip to content