mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
no more serviceworker until cookies and referrers are handled
This commit is contained in:
@@ -21,10 +21,10 @@ function remove_name_from_db(guid, name) {
|
|||||||
|
|
||||||
function getSession(socket) {
|
function getSession(socket) {
|
||||||
try {
|
try {
|
||||||
/*var cookieParser = require("cookie-parser");
|
var cookieParser = require("cookie-parser");
|
||||||
var cookie = require("cookie");
|
var cookie = require("cookie");
|
||||||
var parsedCookies = cookie.parse(socket.handshake.headers.cookie);
|
var parsedCookies = cookie.parse(socket.handshake.headers.cookie);
|
||||||
return parsedCookies["_uI"];*/
|
return parsedCookies["_uI"];
|
||||||
return socket.guid;
|
return socket.guid;
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
return "empty";
|
return "empty";
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ var fromFront = false;
|
|||||||
var fromChannel = false;
|
var fromChannel = false;
|
||||||
|
|
||||||
try{
|
try{
|
||||||
if (navigator.serviceWorker && window.location.host != "zoff.dev") {
|
/*if (navigator.serviceWorker && window.location.host != "zoff.dev") {
|
||||||
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
|
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
|
||||||
.then(function (registration) {
|
.then(function (registration) {
|
||||||
Helper.log(registration);
|
Helper.log(registration);
|
||||||
@@ -128,13 +128,13 @@ try{
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Helper.log('Service Worker is not supported in this browser.');
|
Helper.log('Service Worker is not supported in this browser.');
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/*navigator.serviceWorker.getRegistration('/').then(function(registration) {
|
navigator.serviceWorker.getRegistration('/').then(function(registration) {
|
||||||
if(registration) {
|
if(registration) {
|
||||||
registration.unregister();
|
registration.unregister();
|
||||||
}
|
}
|
||||||
});*/
|
});
|
||||||
|
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user