   reposition: =>
     return if @activeBox[0] == undefined
 
-    if @_isMobile()
+    if osu.isMobile()
       @box[0].classList.add 'js-user-dropdown-modal__dialog--centre'
       @box[0].style.marginTop = '60px'
 

along with osu!web.  If not, see <http://www.gnu.org/licenses/>.
###
class UserDropdownModal
  _mobileElements: document.getElementsByClassName('visible-xs')
  box: document.getElementsByClassName('js-user-dropdown-modal__dialog')
  activeBox: document.getElementsByClassName('js-user-dropdown-modal__dialog--active')
  avatar: document.getElementsByClassName('js-nav-avatar')

    $(document).on 'ajax:error', (event, xhr) =>
      return unless xhr.status == 401
      @show event.target


  isAvatarVisible: =>
