Permalink
Browse files

Fix webkit detection

  • Loading branch information...
koenbok committed Oct 10, 2014
1 parent 9b7b806 commit ef2f73880ff4e0c03a30023ecc3ed08f477d6d52
Showing with 2 additions and 2 deletions.
  1. +1 −1 framer/AnimationLoop.coffee
  2. +1 −1 framer/Utils.coffee
@@ -18,7 +18,7 @@ class exports.AnimationLoop extends EventEmitter
# Workaraound for RAF bug on 10.10
# https://bugs.webkit.org/show_bug.cgi?id=137599
if Utils.webkitVersion() > 600 and Utils.isSafari() and Utils.isDesktop()
if Utils.webkitVersion() > 600 and Utils.isDesktop()
@raf = false
if Utils.webkitVersion() > 600 and Utils.isFramerStudio()
View
@@ -216,7 +216,7 @@ Utils.isWebKit = ->
Utils.webkitVersion = ->
version = -1
regexp = /Safari\/([\d.]+)/
regexp = /AppleWebKit\/([\d.]+)/
result = regexp.exec(navigator.userAgent)
version = parseFloat(result[1]) if result
version

0 comments on commit ef2f738

Please sign in to comment.