Skip to content

Commit f9407f2

Browse files
author
Daniel Beeke
committed
fixing on name instead of folder name
1 parent 987f7c8 commit f9407f2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shapething/localstore",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"license": "MIT",
55
"exports": "./lib/LocalStore.ts"
66
}

lib/LocalStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export class LocalStore implements Source, RdfJsStore {
4848
/** @ts-ignore Deno publish does not pick up our types */
4949
this.#directoryHandle = await globalThis.showDirectoryPicker()
5050
if (!this.#directoryHandle) throw new Error('Could not save the folder')
51-
await set(this.#directoryHandle.name, this.#directoryHandle)
52-
mounts.add(this.#directoryHandle.name)
51+
await set(name ?? this.#directoryHandle.name, this.#directoryHandle)
52+
mounts.add(name ?? this.#directoryHandle.name)
5353
set('mounts', mounts)
5454
} catch (error: any) {
5555
console.error(error)

0 commit comments

Comments
 (0)