Skip to content

Commit

Permalink
make sure we only check for safari7 dirs in ios7.x (fix #3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Jul 3, 2014
1 parent ea44285 commit ce85268
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/devices/ios/ios.js
Expand Up @@ -621,7 +621,8 @@ IOS.prototype.instantLaunchAndQuit = function (needSafariDirs, cb) {
var condition = function () {
var simDirsExist = settings.simDirsExist(this.iOSSDKVersion);
var locServicesDirsExist= settings.locServicesDirsExist(this.iOSSDKVersion);
var safariDirsExist = settings.safari7DirsExist(this.iOSSDKVersion);
var safariDirsExist = this.iOSSDKVersion < 7.0 ||
settings.safari7DirsExist(this.iOSSDKVersion);
var okToGo = simDirsExist && locServicesDirsExist &&
(!needSafariDirs || safariDirsExist);
if (!okToGo) {
Expand Down

0 comments on commit ce85268

Please sign in to comment.