mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
ACS-8770: fix for "this" resolving after migrate from static methods
This commit is contained in:
@@ -332,7 +332,9 @@ export class AdfHttpClient implements ee.Emitter, JsApiHttpClient {
|
||||
|
||||
private createCSRFToken(a?: any): string {
|
||||
const randomValue = this.getSecureRandomValue();
|
||||
return a ? (a ^ ((randomValue * 16) >> (a / 4))).toString(16) : ([1e16] + (1e16).toString()).replace(/[01]/g, this.createCSRFToken);
|
||||
return a
|
||||
? (a ^ ((randomValue * 16) >> (a / 4))).toString(16)
|
||||
: ([1e16] + (1e16).toString()).replace(/[01]/g, this.createCSRFToken.bind(this));
|
||||
}
|
||||
|
||||
private getSecureRandomValue(): number {
|
||||
|
||||
Reference in New Issue
Block a user