Skip to content

Commit d595271

Browse files
committed
Links cleanup
1 parent 61b3f85 commit d595271

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/layouts/Layout.astro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,13 @@ document.addEventListener('DOMContentLoaded', () => {
133133
normalizedHref.startsWith('#') ||
134134
normalizedHref.startsWith('/') ||
135135
normalizedHref.startsWith(origin.toLowerCase()) ||
136-
normalizedHref.startsWith('mailto:') ||
137-
normalizedHref.startsWith('tel:') ||
138-
normalizedHref.startsWith('sms:') ||
139136
(!normalizedHref.includes('://') && !normalizedHref.startsWith('//'))
140137
) {
141138
return;
142139
}
143140

144141
e.preventDefault();
145142
e.stopPropagation();
146-
anchor.href = "";
147143

148144
const message = 'Please visit the website to access external content.';
149145
alert(message);

0 commit comments

Comments
 (0)