aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-02-04 15:52:43 +0100
committer0neGal <mail@0negal.com>2024-02-04 15:52:43 +0100
commitf165e540d0d74946eed2b8e5c857e7ee56227f8a (patch)
tree3ee3cc3e3badbb227e24a9f102db5730e758ce8b /src/modules
parente8e502cc574fdd6eaa54a3a25c2d975596c13026 (diff)
downloadViper-f165e540d0d74946eed2b8e5c857e7ee56227f8a.tar.gz
Viper-f165e540d0d74946eed2b8e5c857e7ee56227f8a.zip
remove newlines from version.titanfall()
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/version.js2
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";
}