there are more ways of not being a web context now

I don't think this is the fix, but it could help with #3115
This commit is contained in:
Jonathan Lipps
2014-07-10 15:46:49 -07:00
parent 2d865c5f31
commit e904ff3a0a
2 changed files with 3 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ arguments.
### Notes
* You must supply the `--no-reset` and `--full-reset` flags for
* You must supply the `--no-reset` or `--full-reset` flags for
Android to work on Windows.
* There exists a hardware accelerated emulator for Android, it has it's own
limitations. For more information you can check out this

View File

@@ -1403,7 +1403,7 @@ iOSController.active = function (cb) {
};
iOSController.isWebContext = function () {
return !!this.curContext;
return this.curContext !== null && this.curContext !== NATIVE_WIN;
};
iOSController.webContextIndex = function () {
@@ -1445,6 +1445,7 @@ iOSController.getContexts = function (cb) {
};
iOSController.setContext = function (name, cb, skipReadyCheck) {
logger.debug("Attempting to set context to '" + name + "'");
if (name === this.curContext) {
cb(null, {
status: status.codes.Success.code