Mobile Safari has a different user agent when standalone.
[pwl6.git] / src / yuu / core.js
index 24e3f2b..1d64e98 100644 (file)
@@ -8,7 +8,8 @@
     "use strict";
 
     yuu.isSafari = function (ua) {
-        return /^((?!chrome).)*safari/i.test(ua || navigator.userAgent);
+        return /^((?!chrome).)*safari/i.test(ua || navigator.userAgent)
+            || navigator.standalone;
     };
 
     yuu.require = function (m) {