Commit 070ca948 authored by Arnolds's avatar Arnolds
Browse files

Removed redundant comments in index.php to improve code readability.

parent c6d74c11
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -243,7 +243,6 @@ header('X-Robots-Tag: noindex, nofollow');
            openMainSection('decryptSection');
        }

        // Always show passphrase input (even for unencrypted / non-existing)
        document.getElementById('passphrase-input-block').style.display = 'block';

        if (passFromHash) {
@@ -255,7 +254,6 @@ header('X-Robots-Tag: noindex, nofollow');
        decryptBtn.addEventListener('click', async () => {
            const passphrase = document.getElementById('decryptPassphrase').value.trim();

            // Optional: disable button to prevent double-click races
            decryptBtn.disabled = true;

            try {
@@ -268,7 +266,6 @@ header('X-Robots-Tag: noindex, nofollow');

                    result = await response.json().catch(() => ({}));

                    // Generic failure (don’t reveal if id exists)
                    if (!response.ok || !result || !result.secret) {
                        closeMainSections();
                        openMainSection('errorSection');