From 4739fe3b9f3be10e88b2e8cf36ff7633f7bca513 Mon Sep 17 00:00:00 2001 From: vgoma Date: Sat, 17 Oct 2020 12:56:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=B2=D0=B5=D0=BB=20=D0=BE?= =?UTF-8?q?=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D1=83=20=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=B1=D0=BE=D0=BA=20=D0=B2=20=D0=BF=D1=80=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=D1=80=D0=B0=D1=85=20=D0=BA=20=D0=B5=D0=B4=D0=B8=D0=BD?= =?UTF-8?q?=D0=BE=D0=BE=D0=B1=D1=80=D0=B0=D0=B7=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/react/src/components/SystemInfo.js | 4 ---- examples/script-tag/public/cert-list.js | 4 ++-- examples/script-tag/public/create-sign.js | 4 ++-- examples/script-tag/public/get-env-info.js | 2 +- examples/script-tag/public/index.html | 8 +++++--- examples/script-tag/public/show-cert.js | 2 +- 6 files changed, 11 insertions(+), 13 deletions(-) diff --git a/examples/react/src/components/SystemInfo.js b/examples/react/src/components/SystemInfo.js index dda5226..bb8ed5f 100644 --- a/examples/react/src/components/SystemInfo.js +++ b/examples/react/src/components/SystemInfo.js @@ -18,10 +18,6 @@ function SystemInfo() { })(); }); - if (!systemInfo) { - return null; - } - return ( <> Информация о системе diff --git a/examples/script-tag/public/cert-list.js b/examples/script-tag/public/cert-list.js index 1467ada..708d986 100644 --- a/examples/script-tag/public/cert-list.js +++ b/examples/script-tag/public/cert-list.js @@ -7,7 +7,7 @@ var $certificate = document.getElementById('certificate'), $createSignature = document.getElementById('createSignature'), $certificateDetails = document.getElementById('certificateDetails'), - $certificateError = document.getElementById('certificateError'); + $certificateError = document.getElementById('certificateListError'); $certificate.addEventListener('change', function handleCertSelection() { var thumbprint = $certificate.value; @@ -26,6 +26,6 @@ $certificate.appendChild($certOption); }); }, function (error) { - $certificateError.textContent = '\n' + error.message; + $certificateError.textContent = error.message; }); })(); diff --git a/examples/script-tag/public/create-sign.js b/examples/script-tag/public/create-sign.js index 09782ec..b8faedf 100644 --- a/examples/script-tag/public/create-sign.js +++ b/examples/script-tag/public/create-sign.js @@ -43,12 +43,12 @@ }, function (error) { $signature.placeholder = 'Не создана'; - $signatureError.textContent = '\n' + error.message; + $signatureError.textContent = error.message; }); }, function (error) { $hash.placeholder = 'Не вычислен'; - $hashError.textContent = '\n' + error.message; + $hashError.textContent = error.message; }); }); })(); diff --git a/examples/script-tag/public/get-env-info.js b/examples/script-tag/public/get-env-info.js index be0b864..634e7e2 100644 --- a/examples/script-tag/public/get-env-info.js +++ b/examples/script-tag/public/get-env-info.js @@ -16,6 +16,6 @@ }, handleError); function handleError(error) { - $systemInfoError.textContent = '\n' + error.message; + $systemInfoError.textContent = error.message; } })(); diff --git a/examples/script-tag/public/index.html b/examples/script-tag/public/index.html index 55b15dd..9066f6e 100755 --- a/examples/script-tag/public/index.html +++ b/examples/script-tag/public/index.html @@ -18,11 +18,13 @@ +

+
             
Информация о сертификате

             
-

+            

 
             
             
@@ -44,6 +46,8 @@
+

+
             

Для для отделенной подписи (или *.sig для совмещенной).

- -

         
 
         
diff --git a/examples/script-tag/public/show-cert.js b/examples/script-tag/public/show-cert.js index aadca7f..1b2c430 100644 --- a/examples/script-tag/public/show-cert.js +++ b/examples/script-tag/public/show-cert.js @@ -7,7 +7,7 @@ var $certificate = document.getElementById('certificate'), $certificateDetails = document.getElementById('certificateDetails'), $certificateInfo = document.getElementById('certificateInfo'), - $certificatesError = document.getElementById('certificatesError'); + $certificatesError = document.getElementById('certificateInfoError'); $certificateDetails.style.display = 'none';