lint file

This commit is contained in:
Sam 2018-07-23 10:58:24 +10:00
parent b14cd2f179
commit 35bc72ef30
1 changed files with 4 additions and 4 deletions

View File

@ -620,14 +620,14 @@ export function fillMissingDates(data, startDate, endDate) {
export function areCookiesEnabled() {
// see: https://github.com/Modernizr/Modernizr/blob/400db4043c22af98d46e1d2b9cbc5cb062791192/feature-detects/cookies.js
try {
document.cookie = 'cookietest=1';
var ret = document.cookie.indexOf('cookietest=') !== -1;
document.cookie = 'cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT';
document.cookie = "cookietest=1";
var ret = document.cookie.indexOf("cookietest=") !== -1;
document.cookie = "cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";
return ret;
} catch (e) {
return false;
}
};
}
// This prevents a mini racer crash
export default {};