Moved versionnumber out to own file instead of defining it two places

This commit is contained in:
Kasper Rynning-Tønnesen
2017-12-27 17:47:43 +01:00
parent 6df3af6978
commit 4afcbda9db
4 changed files with 15 additions and 10 deletions

5
server/VERSION.js Normal file
View File

@@ -0,0 +1,5 @@
VERSION = 3;
try {
module.exports = VERSION;
} catch(e) {}

View File

@@ -1,4 +1,4 @@
VERSION = 3;
VERSION = require('./VERSION.js');
var server;
var add = "";

View File

@@ -1,4 +1,4 @@
var VERSION = 3;
var chan = window.chan === undefined ? $("#chan").html() : window.chan;
var w_p = true;
var hasadmin = 0;