mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying the flowthrough
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user