Skip to content

Commit 20515b4

Browse files
committed
fix: version display with vite
1 parent c4d9073 commit 20515b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/configure.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default () => new Promise((resolve) => {
4343
.then((res) => res.text())
4444
.then((res) => {
4545
if (res.startsWith("VERSION: ")) {
46-
window.internal.versionHash = res.split(": ").pop()
46+
window.internal.versionHash = res.replace(/\n/g, "").trim().split(": ").pop()
4747
} else {
4848
window.internal.versionHash = "Development version"
4949
}

0 commit comments

Comments
 (0)