60%
This commit is contained in:
@@ -44,7 +44,7 @@ foreach ($token in @('lang="renderjs"', './static/tac/css/tac.css', './static/ta
|
||||
Require-Text -Content $component -Text $token -Label 'TacVerification'
|
||||
}
|
||||
Reject-Text -Content $component -Text 'config.doSendRequest = this.sendStrictRequest' -Label '失去 renderjs 实例上下文的传输函数'
|
||||
$staleGuard = 'if (generation !== this.generation || !this.context || this.context.visible !== true) return;'
|
||||
$staleGuard = 'if (generation !== this.generation || !this.requestContext || this.requestContext.visible !== true) return;'
|
||||
if ([regex]::Matches($component, [regex]::Escape($staleGuard)).Count -lt 2) {
|
||||
throw 'TacVerification 必须在资源加载成功与失败两条分支都拒绝过期代次'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user