Trying the flowthrough

This commit is contained in:
Kasper Rynning-Tønnesen
2018-06-05 10:52:45 +02:00
parent 764abdd19b
commit abe6d1f5bb
3 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,6 @@ app.get('/robots.txt', function (req, res) {
});
app.use(function (req, res, next) {
console.log("User agent", req.get("User-Agent"));
var cookie = req.cookies._uI;
if (cookie === undefined) {
var user_name = Functions.hash_pass(Functions.rndName(uniqid.time(), 15));

View File

@@ -256,6 +256,7 @@ function getSessionChatPass(id, callback) {
function setChromecastHost(id, other_id, list, callback) {
try {
console.log("settingChromecastHost: ", socket.cookie_id, msg.guid);
if(id == "empty" || id == undefined) {
callback();
return;

View File

@@ -96,9 +96,9 @@ module.exports = function() {
if(coll.indexOf("?") > -1){
coll = coll.substring(0, coll.indexOf("?"));
}
/*Functions.setChromecastHost(socket.cookie_id, msg.guid, msg.channel, function(results) {
Functions.setChromecastHost(socket.cookie_id, msg.guid, msg.channel, function(results) {
console.log("setChromecastHost: ", results);
});*/
});
//socket.cookie_id = msg.guid;
guid = msg.guid;
socketid = msg.socket_id;