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:
@@ -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;
|
||||
});
|
Reference in New Issue
Block a user