fix: Solidified build environment

This commit is contained in:
Gabe
2025-11-12 23:37:40 +08:00
parent cc31a8004a
commit f70266197e
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ jobs:
version: latest
- uses: actions/setup-node@v4
with:
node-version: "25.1.0"
node-version: 24
cache: "pnpm"
- run: pnpm install
- run: pnpm build+zip

View File

@@ -26,7 +26,7 @@ async function set(key, val) {
} else if (isGm) {
await (window.KISS_GM || GM).setValue(key, val);
} 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);
return val;
}
return window?.localStorage.getItem(key);
return window.localStorage.getItem(key);
}
async function del(key) {
@@ -47,7 +47,7 @@ async function del(key) {
} else if (isGm) {
await (window.KISS_GM || GM).deleteValue(key);
} else {
window?.localStorage.removeItem(key);
window.localStorage.removeItem(key);
}
}