diff --git a/.vscode/settings.json b/.vscode/settings.json index b943dbc..81a8778 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "deno.enable": true + "deno.enable": false } \ No newline at end of file diff --git a/package.json b/package.json index 0541303..f2f7e48 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "kunkun-ext-disk-speed", "license": "MIT", "repository": "https://github.com/kunkunsh/kunkun-ext-disk-speed", - "version": "0.0.9", + "version": "0.0.10", "type": "module", "kunkun": { "name": "Disk Speed", diff --git a/src/lib/store.ts b/src/lib/store.ts index 4789c4a..fb2d218 100644 --- a/src/lib/store.ts +++ b/src/lib/store.ts @@ -1,4 +1,7 @@ import { writable } from "svelte/store"; +import { dev } from "$app/environment"; export const stress = writable(1); -export const targetDir = writable("/Volumes/Portable2TB"); +export const targetDir = writable( + dev ? "/Volumes/Portable2TB" : undefined +);