From ef2f73880ff4e0c03a30023ecc3ed08f477d6d52 Mon Sep 17 00:00:00 2001 From: Koen Bok Date: Fri, 10 Oct 2014 14:26:21 +0200 Subject: [PATCH] Fix webkit detection --- framer/AnimationLoop.coffee | 2 +- framer/Utils.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framer/AnimationLoop.coffee b/framer/AnimationLoop.coffee index 4ee696a42..4f6805f9e 100644 --- a/framer/AnimationLoop.coffee +++ b/framer/AnimationLoop.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() diff --git a/framer/Utils.coffee b/framer/Utils.coffee index 792ee6b91..88d77c06f 100644 --- a/framer/Utils.coffee +++ b/framer/Utils.coffee @@ -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