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 @@ +
+