Function to check if the user is using hangouts or classic chat.

does this mean that if 2 chat boxes are open the function fails?