mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2026-08-22 14:43:29 +08:00
Use writeFileSync instead of writeFile without callback
This commit is contained in:
@@ -79,7 +79,7 @@ function doLogin(accountName, password, authCode, captcha) {
|
|||||||
|
|
||||||
console.log("Writing secrets to twofactor_" + community.steamID.getSteamID64() + ".json");
|
console.log("Writing secrets to twofactor_" + community.steamID.getSteamID64() + ".json");
|
||||||
console.log("Revocation code: " + response.revocation_code);
|
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);
|
promptActivationCode(response);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user