修复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,14 +134,16 @@ $assist._make_message_box = function () {
};
$assist.do_teleport = function (args, func_success, func_error) {
if(!$assist.running) {
$assist.errcode = TPE_NO_ASSIST;
func_error(TPE_NO_ASSIST, '');
return;
} else if(!$assist._version_compare()) {
$assist.errcode = TPE_OLD_ASSIST;
func_error(TPE_NO_ASSIST, '');
return;
if(!$app.options.url_proto){
if(!$assist.running) {
$assist.errcode = TPE_NO_ASSIST;
func_error(TPE_NO_ASSIST, '');
return;
} else if(!$assist._version_compare()) {
$assist.errcode = TPE_OLD_ASSIST;
func_error(TPE_NO_ASSIST, '');
return;
}
}
// 第一步将参数传递给web服务准备获取一个远程连接会话ID