aboutsummaryrefslogtreecommitdiff
path: root/src/app/lang.js
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2021-12-30 00:19:21 +0100
committerAlystrasz <contact@remyraes.com>2021-12-30 00:19:21 +0100
commit869fef7de703174b5b0e0eadc6565a8963bb6bfc (patch)
tree6d0cfb1c6c1dcec1f53b8853474f4910db17bdbe /src/app/lang.js
parent9df37da13c5eeba92ceeed7a5e9ffbaed976a615 (diff)
parentfabfee3a0b845a9b58dbb59932228d6c4223aad3 (diff)
downloadViper-869fef7de703174b5b0e0eadc6565a8963bb6bfc.tar.gz
Viper-869fef7de703174b5b0e0eadc6565a8963bb6bfc.zip
Merge branch 'main' into feat/version-indicator
Diffstat (limited to 'src/app/lang.js')
-rw-r--r--src/app/lang.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/app/lang.js b/src/app/lang.js
index 8cf3d4b..5cc9708 100644
--- a/src/app/lang.js
+++ b/src/app/lang.js
@@ -1,10 +1,12 @@
-html = document.body.innerHTML.split("%%");
+function setlang() {
+ html = document.body.innerHTML.split("%%");
-for (let i = 0; i < html.length; i++) {
- if (html[i][0] != " " &&
- html[i][html[i].length - 1] != " ") {
- html[i] = lang(html[i])
+ for (let i = 0; i < html.length; i++) {
+ if (html[i][0] != " " &&
+ html[i][html[i].length - 1] != " ") {
+ html[i] = lang(html[i])
+ }
}
-}
-document.body.innerHTML = html.join("");
+ document.body.innerHTML = html.join("");
+}