projects
/
yuu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0b0759
)
Add Safari-checking function.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Tue, 23 Sep 2014 16:15:46 +0000
(18:15 +0200)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Tue, 23 Sep 2014 16:15:46 +0000
(18:15 +0200)
src/yuu/core.js
patch
|
blob
|
history
diff --git
a/src/yuu/core.js
b/src/yuu/core.js
index cbeb2a0acb236a9aa52ca3002d3f11d8782264b3..1d64e98d193c170d56a0f84c73f05dac5dfcb003 100644
(file)
--- a/
src/yuu/core.js
+++ b/
src/yuu/core.js
@@
-7,6
+7,10
@@
(function (yuu) {
"use strict";
+ yuu.isSafari = function (ua) {
+ return /^((?!chrome).)*safari/i.test(ua || navigator.userAgent)
+ || navigator.standalone;
+ };
yuu.require = function (m) {
try { return require(m); }