web: add noop fallback methods in storage

This commit is contained in:
Abdullah Atta
2024-12-23 13:35:51 +05:00
committed by Abdullah Atta
parent 6e8610c358
commit bc3e7c6a53

View File

@@ -172,6 +172,17 @@ export class NNStorage implements IStorage {
return key;
}
}
// noop
generateCryptoKeyFallback(
password: string,
salt?: string
): Promise<SerializedKey> {
return this.generateCryptoKey(password, salt);
}
// noop
async deriveCryptoKeyFallback(): Promise<void> {}
}
const dec = new TextDecoder();