From 0ab3a94493d41c5246bce82de9768772ce9f087f Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Tue, 16 Jan 2018 14:40:07 -0500 Subject: [PATCH] Use writeFileSync instead of writeFile without callback --- examples/enable_twofactor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/enable_twofactor.js b/examples/enable_twofactor.js index 6e49c97..cec250d 100644 --- a/examples/enable_twofactor.js +++ b/examples/enable_twofactor.js @@ -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); });