aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-06-08 18:10:06 +0200
committer0neGal <mail@0negal.com>2024-06-08 18:10:06 +0200
commit7f011d34a2d5e13ba312b44ce6871e48a495ea8f (patch)
tree907875087645c62f3e8f3bbcd610bee6d06bc796 /src
parentdbd8c6b152acc1188d2edd288488aa2da8f6310b (diff)
downloadViper-7f011d34a2d5e13ba312b44ce6871e48a495ea8f.tar.gz
Viper-7f011d34a2d5e13ba312b44ce6871e48a495ea8f.zip
replace js/misc.js file with js/version.js module
Diffstat (limited to 'src')
-rw-r--r--src/app/index.html1
-rw-r--r--src/app/js/version.js (renamed from src/app/js/misc.js)2
-rw-r--r--src/app/main.js1
3 files changed, 2 insertions, 2 deletions
diff --git a/src/app/index.html b/src/app/index.html
index 87a1029..1297d0a 100644
--- a/src/app/index.html
+++ b/src/app/index.html
@@ -333,7 +333,6 @@
</div>
<script src="main.js"></script>
- <script src="js/misc.js"></script>
<script src="js/mods.js"></script>
<script src="js/toast.js"></script>
<script src="js/popups.js"></script>
diff --git a/src/app/js/misc.js b/src/app/js/version.js
index b35f239..97223f9 100644
--- a/src/app/js/misc.js
+++ b/src/app/js/version.js
@@ -1,4 +1,4 @@
-version = {
+module.exports = {
is_newer: (version1, version2) => {
version1 = version.format(version1, true).split(".");
version2 = version.format(version2, true).split(".");
diff --git a/src/app/main.js b/src/app/main.js
index 2ed3053..11f5853 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -30,6 +30,7 @@ const kill = require("./js/kill");
const update = require("./js/update");
const events = require("./js/events");
const launch = require("./js/launch");
+const version = require("./js/version");
const request = require("./js/request");
const process = require("./js/process");
const settings = require("./js/settings");