Sha256: 88598f8d41f89787759b97dfe80b1dad382ed23ed8f57c0ccc4e6cb1c79acd91

Contents?: true

Size: 276 Bytes

Versions: 24

Compression:

Stored size: 276 Bytes

Contents

@AgentDetector = do ->

  match = (regexp) ->
    navigator.userAgent.match(regexp)

  isIE = ->
    match(/\bTrident\b/)

  isEdge = ->
    match(/\bEdge\b/)

  isSafari = ->
    match(/\bSafari\b/) && !match(/\bChrome\b/)

  isIE: isIE
  isEdge: isEdge
  isSafari: isSafari

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
unpoly-rails-0.51.0 spec_app/spec/javascripts/helpers/agent_detector.coffee
unpoly-rails-0.50.2 spec_app/spec/javascripts/helpers/agent_detector.coffee
unpoly-rails-0.50.1 spec_app/spec/javascripts/helpers/agent_detector.coffee
unpoly-rails-0.50.0 spec_app/spec/javascripts/helpers/agent_detector.coffee