Macro gets Stuck on Javascript Safari window

I'm using Maestro to Execute JavaScript in Safari. The problem is the script pops up a new window with a link(check photo) that I want Maestro to copy and paste in a new tab. Maestro can't do anything to the window and the Macro pauses on the Execute JavaScript in Safari action and only resumes when I manually close the window. Is there any possible way I can get maestro to copy the link and close the message box?

I believe you it would work if you set the action to run asynchronously.
So try to change where it says Ignore results to asynchronously.


EDIT: Worked now! Thanks so much Jimmy!

When I set it asynchronously the window doesn't show up at all, but the macro resumes normally. It's almost like the script didn't even run