remove deprecated cookies

This commit is contained in:
Thibault Duplessis 2013-06-11 12:17:54 +02:00
parent 6a74ff03f2
commit f2455e3d36
2 changed files with 9 additions and 1 deletions

View file

@ -7,7 +7,7 @@ import controllers.routes
trait AssetHelper {
val assetVersion = 63
val assetVersion = 64
def cssTag(name: String) = css("stylesheets/" + name)

View file

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