Updated all text to English
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
class EnhancedSecureWebRTCManager {
|
class EnhancedSecureWebRTCManager {
|
||||||
constructor(onMessage, onStatusChange, onKeyExchange, onVerificationRequired, onAnswerError = null) {
|
constructor(onMessage, onStatusChange, onKeyExchange, onVerificationRequired, onAnswerError = null) {
|
||||||
// Проверяем доступность глобального объекта
|
// Check the availability of the global object
|
||||||
if (!window.EnhancedSecureCryptoUtils) {
|
if (!window.EnhancedSecureCryptoUtils) {
|
||||||
throw new Error('EnhancedSecureCryptoUtils is not loaded. Please ensure the module is loaded first.');
|
throw new Error('EnhancedSecureCryptoUtils is not loaded. Please ensure the module is loaded first.');
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@ class EnhancedSecureWebRTCManager {
|
|||||||
this.onStatusChange = onStatusChange;
|
this.onStatusChange = onStatusChange;
|
||||||
this.onKeyExchange = onKeyExchange;
|
this.onKeyExchange = onKeyExchange;
|
||||||
this.onVerificationRequired = onVerificationRequired;
|
this.onVerificationRequired = onVerificationRequired;
|
||||||
this.onAnswerError = onAnswerError; // Callback для ошибок обработки ответа
|
this.onAnswerError = onAnswerError; // Callback for response processing errors
|
||||||
this.isInitiator = false;
|
this.isInitiator = false;
|
||||||
this.connectionAttempts = 0;
|
this.connectionAttempts = 0;
|
||||||
this.maxConnectionAttempts = 3;
|
this.maxConnectionAttempts = 3;
|
||||||
@@ -376,7 +376,7 @@ class EnhancedSecureWebRTCManager {
|
|||||||
hasMacKey: !!this.macKey,
|
hasMacKey: !!this.macKey,
|
||||||
hasMetadataKey: !!this.metadataKey
|
hasMetadataKey: !!this.metadataKey
|
||||||
});
|
});
|
||||||
throw new Error('Отсутствуют ключи для расшифровки legacy сообщения');
|
throw new Error('Missing keys to decrypt legacy message');
|
||||||
}
|
}
|
||||||
|
|
||||||
const decryptedData = await window.EnhancedSecureCryptoUtils.decryptMessage(
|
const decryptedData = await window.EnhancedSecureCryptoUtils.decryptMessage(
|
||||||
@@ -645,7 +645,7 @@ class EnhancedSecureWebRTCManager {
|
|||||||
macKeyAlgorithm: this.macKey?.algorithm?.name,
|
macKeyAlgorithm: this.macKey?.algorithm?.name,
|
||||||
metadataKeyAlgorithm: this.metadataKey?.algorithm?.name
|
metadataKeyAlgorithm: this.metadataKey?.algorithm?.name
|
||||||
});
|
});
|
||||||
throw new Error('Недействительные типы ключей после вывода');
|
throw new Error('Invalid key types after output');
|
||||||
}
|
}
|
||||||
|
|
||||||
// PFS: Initialize key version tracking
|
// PFS: Initialize key version tracking
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class PayPerSessionManager {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!healthCheck.ok) {
|
if (!healthCheck.ok) {
|
||||||
throw new Error(`LNbits API недоступен: ${healthCheck.status}`);
|
throw new Error(`LNbits API is not available: ${healthCheck.status}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await fetch(`${this.verificationConfig.apiUrl}/api/v1/payments`, {
|
const response = await fetch(`${this.verificationConfig.apiUrl}/api/v1/payments`, {
|
||||||
|
|||||||
Reference in New Issue
Block a user