mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-02-28 13:20:23 +08:00
Use writeFileSync instead of writeFile without callback
This commit is contained in:
parent
7c2ec65b8c
commit
0ab3a94493
@ -79,7 +79,7 @@ function doLogin(accountName, password, authCode, captcha) {
|
||||
|
||||
console.log("Writing secrets to twofactor_" + community.steamID.getSteamID64() + ".json");
|
||||
console.log("Revocation code: " + response.revocation_code);
|
||||
fs.writeFile("twofactor_" + community.steamID.getSteamID64() + ".json", JSON.stringify(response, null, "\t"));
|
||||
fs.writeFileSync("twofactor_" + community.steamID.getSteamID64() + ".json", JSON.stringify(response, null, "\t"));
|
||||
|
||||
promptActivationCode(response);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user