From aa69b8722ed04b21d094a24bcc8b7a832399f29a Mon Sep 17 00:00:00 2001 From: peshomir <80340328+peshomir@users.noreply.github.com> Date: Tue, 23 Jun 2026 08:13:20 +0300 Subject: [PATCH] Fix game script download --- download.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;