We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b3f85 commit d595271Copy full SHA for d595271
src/layouts/Layout.astro
@@ -133,17 +133,13 @@ document.addEventListener('DOMContentLoaded', () => {
133
normalizedHref.startsWith('#') ||
134
normalizedHref.startsWith('/') ||
135
normalizedHref.startsWith(origin.toLowerCase()) ||
136
- normalizedHref.startsWith('mailto:') ||
137
- normalizedHref.startsWith('tel:') ||
138
- normalizedHref.startsWith('sms:') ||
139
(!normalizedHref.includes('://') && !normalizedHref.startsWith('//'))
140
) {
141
return;
142
}
143
144
e.preventDefault();
145
e.stopPropagation();
146
- anchor.href = "";
147
148
const message = 'Please visit the website to access external content.';
149
alert(message);
0 commit comments