changelog

This commit is contained in:
2021-05-02 15:54:27 +02:00
parent 8e6ef5e2f6
commit d84475ffe9
2 changed files with 26 additions and 2 deletions

View File

@@ -40,7 +40,7 @@
})
async function show() {
const data = await get(id)
const data = note || (await get(id)) // Don't get the content twice on wrong password.
if (needPassword) {
try {
const key = await getKeyFromString(password)
@@ -74,7 +74,11 @@
<Button type="submit">show note</Button>
{#if error}
<br />
<p class="error-text">wrong password. could not decipher.</p>
<p class="error-text">
wrong password. could not decipher.
<br />
note already destroyed. try again without reloading the page.
</p>
{/if}
</form>
{/if}