feat: fix

This commit is contained in:
2026-02-28 18:50:57 +08:00
parent f1054e6476
commit d0bb6f357e
8 changed files with 11474 additions and 85 deletions

View File

@@ -32,12 +32,13 @@ async function runDemo() {
status.value = 'Initializing Anisette...'
const anisette = await Anisette.fromSo(ssBytes, caBytes, wasmModule, {
httpClient,
init: { libraryPath: '/anisette' }
init: { libraryPath: './anisette/' }
})
console.log(anisette.getDevice())
if (!anisette.isProvisioned) {
status.value = 'Provisioning...'
await anisette.provision()
} else {
status.vaule = 'Already provisioned, skipping provisioning step'
}
status.value = 'Getting headers...'
@@ -52,7 +53,7 @@ async function runDemo() {
<template>
<div>
<h1>Anisette JS Demo</h1>
<h1>Anisette Vue Demo</h1>
<div>
<button @click="runDemo">Run</button>
@@ -62,4 +63,4 @@ async function runDemo() {
<pre v-if="headers">{{ JSON.stringify(headers, null, 2) }}</pre>
</div>
</template>
</template>