"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) {
req[k] = params[k];
req.onload = function () {
var status = this.status;
- // status === 0 is given by node-webkit for success.
+ // status === 0 is given by NW.js for success.
if ((status >= 200 && status < 300) || status === 0)
resolve(this.response);
else