diff --git a/download.js b/download.js index 48137a8..a810c0f 100644 --- a/download.js +++ b/download.js @@ -21,7 +21,7 @@ const request = https.get("https://territorial.io", function (response) { // https://stackoverflow.com/a/14867897 const scriptContent = data.substring( data.indexOf("") + data.indexOf("") ); // Write the script to ./game/latest.js without any line breaks fs.writeFileSync("./game/latest.js", scriptContent.replace(/\r?\n|\r/g, "")); @@ -32,4 +32,4 @@ const request = https.get("https://territorial.io", function (response) { }); }); }); -export default downloadGame; \ No newline at end of file +export default downloadGame;