no more serviceworker until cookies and referrers are handled

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-14 21:59:46 +01:00
parent 0fdd491bfd
commit 15532d8f9a
2 changed files with 6 additions and 6 deletions

View File

@@ -21,10 +21,10 @@ function remove_name_from_db(guid, name) {
function getSession(socket) {
try {
/*var cookieParser = require("cookie-parser");
var cookieParser = require("cookie-parser");
var cookie = require("cookie");
var parsedCookies = cookie.parse(socket.handshake.headers.cookie);
return parsedCookies["_uI"];*/
return parsedCookies["_uI"];
return socket.guid;
} catch(e) {
return "empty";