fix: Solidified build environment
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
version: latest
|
version: latest
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "25.1.0"
|
node-version: 24
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: pnpm build+zip
|
- run: pnpm build+zip
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ async function set(key, val) {
|
|||||||
} else if (isGm) {
|
} else if (isGm) {
|
||||||
await (window.KISS_GM || GM).setValue(key, val);
|
await (window.KISS_GM || GM).setValue(key, val);
|
||||||
} else {
|
} else {
|
||||||
window?.localStorage.setItem(key, val);
|
window.localStorage.setItem(key, val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ async function get(key) {
|
|||||||
const val = await (window.KISS_GM || GM).getValue(key);
|
const val = await (window.KISS_GM || GM).getValue(key);
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return window?.localStorage.getItem(key);
|
return window.localStorage.getItem(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function del(key) {
|
async function del(key) {
|
||||||
@@ -47,7 +47,7 @@ async function del(key) {
|
|||||||
} else if (isGm) {
|
} else if (isGm) {
|
||||||
await (window.KISS_GM || GM).deleteValue(key);
|
await (window.KISS_GM || GM).deleteValue(key);
|
||||||
} else {
|
} else {
|
||||||
window?.localStorage.removeItem(key);
|
window.localStorage.removeItem(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user