Trying to failsafe the crypto

This commit is contained in:
Kasper Rynning-Tønnesen
2016-01-25 15:14:07 +01:00
parent 0b3c709766
commit 216c7e2f1a
2 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -3,6 +3,12 @@ var Crypt = {
conf_arr: {}, conf_arr: {},
init: function(){ init: function(){
if(localStorage["full_update"] == undefined)
{
document.cookie = chan.toLowerCase() + '=; path=/; expires=' + new Date(0).toUTCString();
document.cookie = chan.toLowerCase() + '=; path=/' + chan.toLowerCase() + '; expires=' + new Date(0).toUTCString();
localStorage["full_update"] = "25.01.2016";
}
try{ try{
conf_arr = Crypt.decrypt(Crypt.getCookie("_opt"), "_opt"); conf_arr = Crypt.decrypt(Crypt.getCookie("_opt"), "_opt");
}catch(err){ }catch(err){