Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print the clickable mailto link #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion config/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,11 @@ const commands = {
const role = (args == 2) ? "hacker in residence" : "analyst";
const subject = `Applying for ${role} at Root Ventures!`;
const body = "Wow! I love your website. It's so cool. I definitely want to work with this awesome team. Here's my resume.";
location.href = `mailto:${email}?subject=${subject}&body=${body}`;
const mailToLink = `mailto:${email}?subject=${subject}&body=${body}`;
location.href = mailToLink;
term.stylePrint('(your browser may have blocked our CLI from taking you to a mailto: link...)');
term.stylePrint("you can click here if that didn't work:")
term.displayURL(mailToLink);
}
}

Expand Down