Use writeFileSync instead of writeFile without callback

This commit is contained in:
Alexander Corn 2018-01-16 14:40:07 -05:00
parent 7c2ec65b8c
commit 0ab3a94493

View File

@ -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);
});