Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tower1229 committed Jul 15, 2019
1 parent 1237201 commit df0ea2c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions sdk/core.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
app JS SDK
Version:2.4.2
update: ios closeback bug
date:2019-05-29
Version:2.4.3
update: app.window.evaluate()兼容两个参数的情况
date:2019-07-15
*
/*! Sea.js 2.2.1 | seajs.org/LICENSE.md */
Expand Down Expand Up @@ -997,6 +997,13 @@ var apputil = (function(document, undefined) {
frameName = paramObj.frameName || '';
script = paramObj.script || '';
}

//兼容两个参数的情况
if((script === void(0)) && frameName){
script = frameName;
frameName = '';
}

api.execScript({
name: name || api.winName,
frameName: frameName,
Expand Down

0 comments on commit df0ea2c

Please sign in to comment.