mirror of
https://github.com/Luzifer/wasm-openssl.git
synced 2024-11-09 15:20:06 +00:00
Hide interface until load, display loading errors
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
c617e74d04
commit
df07d2b8ea
1 changed files with 26 additions and 22 deletions
|
@ -28,6 +28,7 @@
|
|||
{{ error }}
|
||||
</b-alert>
|
||||
|
||||
<template v-if="loaded">
|
||||
<b-form-input
|
||||
v-model="passphrase"
|
||||
class="mb-2"
|
||||
|
@ -52,6 +53,7 @@
|
|||
placeholder="Paste ciphertext here..."
|
||||
v-model="ciphertext"
|
||||
></b-form-textarea>
|
||||
</template>
|
||||
|
||||
</b-col>
|
||||
</b-row>
|
||||
|
@ -123,7 +125,9 @@
|
|||
|
||||
WebAssembly.instantiateStreaming(fetch("openssl.wasm"), go.importObject)
|
||||
.then(result => go.run(result.instance))
|
||||
.catch(err => console.error(err))
|
||||
.catch(err => {
|
||||
this.error = err
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue