pull/418/head
amrbashir 2 years ago
parent 6c674e1b21
commit a0cbb1c7d5
No known key found for this signature in database
GPG Key ID: BBD7A47A2003FF33

@ -436,10 +436,12 @@ export class Stronghold {
* @returns * @returns
*/ */
static async load(path: string, password: string): Promise<Stronghold> { static async load(path: string, password: string): Promise<Stronghold> {
return await window.__TAURI_INVOKE__("plugin:stronghold|initialize", { return await window
.__TAURI_INVOKE__("plugin:stronghold|initialize", {
snapshotPath: path, snapshotPath: path,
password, password,
}).then(() => new Stronghold(path)); })
.then(() => new Stronghold(path));
} }
/** /**

Loading…
Cancel
Save