diff options
author | 0neGal <mail@0negal.com> | 2024-06-08 18:10:06 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-06-08 18:10:06 +0200 |
commit | 7f011d34a2d5e13ba312b44ce6871e48a495ea8f (patch) | |
tree | 907875087645c62f3e8f3bbcd610bee6d06bc796 | |
parent | dbd8c6b152acc1188d2edd288488aa2da8f6310b (diff) | |
download | Viper-7f011d34a2d5e13ba312b44ce6871e48a495ea8f.tar.gz Viper-7f011d34a2d5e13ba312b44ce6871e48a495ea8f.zip |
replace js/misc.js file with js/version.js module
-rw-r--r-- | src/app/index.html | 1 | ||||
-rw-r--r-- | src/app/js/version.js (renamed from src/app/js/misc.js) | 2 | ||||
-rw-r--r-- | src/app/main.js | 1 |
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"); |