Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

HipChat Sidebar opening external browser windows

Chris Reece October 18, 2016

Hello,

I'm having an issue with opening external browser windows in my HipChat addon in Microsoft Windows only (Windows 10 users). Mac works fine. This also works fine for BOTH OS in the HipChat webapp. I am simply using a windows.open(<url>) in my addon.js. Has anyone run into this issue and has a solution? 

1 answer

1 accepted

1 vote
Answer accepted
Chris Reece October 24, 2016

10/24/16 Update:

I actually got this working over the weekend. Apparently, Windows native app blocks window.open that were not initiated by a "direct" user action. Mac does not appear to do this at all which is why it was working on most of the computers and the webapp. I had my code that opened the window in an ajax call which was initiated by a button click in the sidebar. While this appears to be initiated through a user action, the ajax call is NOT a user action so it did not work. Once I re-worked my code to have the ajax code elsewhere and clicked the button, the window opened just fine. Just a heads up for anyone else running into this issue.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events