diff options
author | 0neGal <mail@0negal.com> | 2024-02-04 15:52:43 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-02-04 15:52:43 +0100 |
commit | f165e540d0d74946eed2b8e5c857e7ee56227f8a (patch) | |
tree | 3ee3cc3e3badbb227e24a9f102db5730e758ce8b | |
parent | e8e502cc574fdd6eaa54a3a25c2d975596c13026 (diff) | |
download | Viper-f165e540d0d74946eed2b8e5c857e7ee56227f8a.tar.gz Viper-f165e540d0d74946eed2b8e5c857e7ee56227f8a.zip |
remove newlines from version.titanfall()
-rw-r--r-- | src/modules/version.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/version.js b/src/modules/version.js index e337fc4..303fd42 100644 --- a/src/modules/version.js +++ b/src/modules/version.js @@ -87,7 +87,7 @@ version.northstar = () => { version.titanfall = () => { var versionFilePath = path.join(settings().gamepath, "gameversion.txt"); if (fs.existsSync(versionFilePath)) { - return fs.readFileSync(versionFilePath, "utf8"); + return fs.readFileSync(versionFilePath, "utf8").trim(); } else { return "unknown"; } |