We have the functionality to generate an invitation link. At this time the link is shown in a text area and we have two buttons, one for generate a link (that generates the link on the server with a Meteor.call and writes the response to the clipboard) and one that copies the content to the clipboard.
We now want only one button. Copying the text inside of an event is now problem using some createRange and execCommand magic but as soon as I put the same code inside of a window.setInterval or insode of a meteor.call callback it does not work anymore. has anyone any idea?