Skip to content

Commit ac53eb6

Browse files
authored
Merge pull request #8 from makespacemadrid/fix-email-javascript
Fix mobile
2 parents 8d2cb10 + ac505e1 commit ac53eb6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

assets/js/hidden_url.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
function sendEmail() {
1+
function sendEmail(e) {
2+
e.preventDefault();
23
const x = 'info';
34
const y = 'makespacemadrid';
45
const emailAddress = `${x}@${y}.org`;
56
window.location.href = `mailto:${emailAddress}`;
67
}
78

8-
function openTelegramLink() {
9+
function openTelegramLink(e) {
10+
e.preventDefault();
911
const x = 'makespacemadridorg';
1012
const telegramUrl = `https://t.me/${x}`;
1113
window.open(telegramUrl, '_blank');

0 commit comments

Comments
 (0)