Skip to content

Commit

Permalink
Merge pull request #69 from kyowang/bugfix-setContextNoNeedGetContext
Browse files Browse the repository at this point in the history
Bugfix set context no need get context
  • Loading branch information
kyowang committed Jul 11, 2017
2 parents 23a29ca + a27ae37 commit cd8e2b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ controllers.getContexts = function *() {
};

controllers.setContext = function *(name) {
yield this.getContexts();
if (name !== NATIVE) {
yield this.getContexts();
if (!~this.contexts.indexOf(name)) {
throw new errors.NoSuchWindow();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "macaca-android",
"version": "2.0.28",
"version": "2.0.29",
"description": "Macaca Android driver",
"keywords": [
"android",
Expand Down

0 comments on commit cd8e2b3

Please sign in to comment.