fix old cookie remover

This commit is contained in:
Thibault Duplessis 2013-06-11 12:55:30 +02:00
parent b4eb16caa4
commit 4916bc8eee
2 changed files with 3 additions and 4 deletions

View file

@ -2499,11 +2499,11 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
setTimeout(function() {
// remove deprecated cookies
if (!localStorage.getItem('uncook')) {
if (!localStorage.getItem('uncook2')) {
_.each(['wsok', 'surl', 'c960', 'lt', 'lila'], function(name) {
document.cookie = name + '=;domain=.l.org;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
document.cookie = name + '=;domain=.lichess.org;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
});
localStorage.setItem('uncook', 1);
localStorage.setItem('uncook2', 1);
}
}, 1000);

1
todo
View file

@ -60,7 +60,6 @@ players world map
account closed accounts in team counts
IE10 no sound toggle http://en.lichess.org/forum/lichess-feedback/notification-of-game-creation#3
filter current games for watching http://en.lichess.org/forum/lichess-feedback/viewing-current-games-suggestion#2
declined challenge still appears
second realtime board on homepage (right)
show friend games in homepage board
allow to filter anon