1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-08-30 05:57:30 +00:00

use node http server

This commit is contained in:
Tim Meier
2016-06-04 09:30:47 +02:00
parent e0c4d9705c
commit a0ad60d21b
6 changed files with 44 additions and 42 deletions

View File

@@ -1,16 +1,32 @@
window.Config = {};
var Config = {};
Config.Server = {
"hostname": "localhost",
"port": 16918,
secure: false
}
"hostname": "127.0.0.1",
"port": 16918
};
Config.WebServer = {
"port": 3000
};
Config.Gwent = {
notification_duration: 4000
}
};
Config.Site = {
base: "/gwent/site/public"
}
(function (name, definition){
if (typeof define === 'function'){ // AMD
define(definition);
} else if (typeof module !== 'undefined' && module.exports) { // Node.js
module.exports = definition();
} else { // Browser
var theModule = definition(), global = this, old = global[name];
theModule.noConflict = function () {
global[name] = old;
return theModule;
};
global[name] = theModule;
}
})('Config', function () {
return Config;
});