修复urlprotocol

修复urlprotocol调用问题
pull/173/head
horizonlin 2019-07-30 17:02:05 +08:00 committed by GitHub
parent bd889256cd
commit 545cc66096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 8 deletions

View File

@ -134,6 +134,7 @@ $assist._make_message_box = function () {
};
$assist.do_teleport = function (args, func_success, func_error) {
if(!$app.options.url_proto){
if(!$assist.running) {
$assist.errcode = TPE_NO_ASSIST;
func_error(TPE_NO_ASSIST, '');
@ -143,6 +144,7 @@ $assist.do_teleport = function (args, func_success, func_error) {
func_error(TPE_NO_ASSIST, '');
return;
}
}
// 第一步将参数传递给web服务准备获取一个远程连接会话ID
var args_ = JSON.stringify(args);