[Misc] Fix import in decrypt-save.js (#6149)

This commit is contained in:
Sirz Benjie 2025-07-25 23:30:58 -06:00 committed by GitHub
parent bb46ba9f60
commit 4f259e2c2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,9 @@
// biome-ignore lint/performance/noNamespaceImport: This is how you import fs from node
import * as fs from "node:fs";
import { AES, enc } from "crypto-js";
import crypto_js from "crypto-js";
const { AES, enc } = crypto_js;
const SAVE_KEY = "x0i2O7WRiANTqPmZ";
@ -144,7 +146,7 @@ function main() {
process.exit(0);
}
writeToFile(destPath, decrypt);
writeToFile(args[1], decrypt);
}
main();