fix cross-browser issue with dropbox login