Skip to content

Commit

Permalink
Fix webkit detection
Browse files Browse the repository at this point in the history
  • Loading branch information
koenbok committed Oct 10, 2014
1 parent 9b7b806 commit ef2f738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framer/AnimationLoop.coffee
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion framer/Utils.coffee
Expand Up @@ -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
Expand Down

0 comments on commit ef2f738

Please sign in to comment.