mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 01:40:39 +08:00
lint file
This commit is contained in:
parent
b14cd2f179
commit
35bc72ef30
@ -620,14 +620,14 @@ export function fillMissingDates(data, startDate, endDate) {
|
|||||||
export function areCookiesEnabled() {
|
export function areCookiesEnabled() {
|
||||||
// see: https://github.com/Modernizr/Modernizr/blob/400db4043c22af98d46e1d2b9cbc5cb062791192/feature-detects/cookies.js
|
// see: https://github.com/Modernizr/Modernizr/blob/400db4043c22af98d46e1d2b9cbc5cb062791192/feature-detects/cookies.js
|
||||||
try {
|
try {
|
||||||
document.cookie = 'cookietest=1';
|
document.cookie = "cookietest=1";
|
||||||
var ret = document.cookie.indexOf('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; expires=Thu, 01-Jan-1970 00:00:01 GMT";
|
||||||
return ret;
|
return ret;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
// This prevents a mini racer crash
|
// This prevents a mini racer crash
|
||||||
export default {};
|
export default {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user