✦ Link to code: http://joelgrayson.com/open-in-new-ta...
___𝗖𝗹𝗮𝗿𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻___
The reason for the conditional, if (message===‘foo’), is so that you can post multiple messages that link to different tabs:
if (message===‘foo’) → open foo.com
if (message===‘bar’) → open bar.com
if (message===‘baz’) → open baz.com