diff --git a/src/App.svelte b/src/App.svelte index 0bd94d6..2a7ce46 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -2,10 +2,18 @@ import EncryptButton from './lib/EncryptButton.svelte' import PasswordButton from './lib/PasswordButton.svelte'; import DecryptButton from './lib/DecryptButton.svelte'; + import { errorMessage } from './lib/generalStore'; + + let errorMessageContent + errorMessage.subscribe( value => { + errorMessageContent = value; + });

Encrypt and decrypt files

+ {errorMessageContent} +
diff --git a/src/lib/DecryptButton.svelte b/src/lib/DecryptButton.svelte index 497642e..73d7775 100644 --- a/src/lib/DecryptButton.svelte +++ b/src/lib/DecryptButton.svelte @@ -1,7 +1,7 @@