We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a01d896 commit 29132fbCopy full SHA for 29132fb
src/hooks/useConfig.ts
@@ -20,9 +20,12 @@ export interface Config {
20
}
21
22
function platform_cache_default() {
23
- if (host().platform == 'darwin') {
+ switch (Deno.build.os) {
24
+ case 'darwin':
25
return Path.home().join('Library/Caches')
- } else {
26
+ case 'windows':
27
+ return flatmap(Deno.env.get("LOCALAPPDATA"), Path.abs) ?? Path.home().join('AppData/Local')
28
+ default:
29
return Path.home().join('.cache')
30
31
0 commit comments