fix use in navigateToApp

This commit is contained in:
Joe Fleming 2015-11-24 10:21:37 -06:00
parent 8a5c94c941
commit ca5ba4fe16

View file

@ -51,14 +51,13 @@ define(function (require) {
self.debug(msg);
throw new Error(msg);
}
return currentUrl;
});
});
};
return doNavigation(appUrl)
.then(function () {
return self.remote.getCurrentUrl();
})
.then(function (currentUrl) {
var lastUrl = currentUrl;
return self.tryForTime(defaultTimeout, function () {