mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
No longer clearing cookies, oops.
This commit is contained in:
parent
adc08973ec
commit
2f061e648e
@ -109,24 +109,6 @@ define(
|
||||
else {
|
||||
window.document.title = title + ' - NzbDrone';
|
||||
}
|
||||
|
||||
this._clearCookies();
|
||||
},
|
||||
|
||||
_clearCookies: function () {
|
||||
|
||||
if (!document.cookie) {
|
||||
return;
|
||||
}
|
||||
|
||||
var cookies = document.cookie.split(';');
|
||||
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = cookies[i];
|
||||
var eqPos = cookie.indexOf('=');
|
||||
var name = eqPos > -1 ? cookie.substr(0, eqPos) :cookie;
|
||||
document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:00 GMT';
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user