Fix #1 Popup blocker interference

Now works if the login function is called from an `onClick()`.