src/page-metadata.js
function hasCookies() {
        if (navigator.cookieEnabled) {
            return true;
        }

        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;
    }
function hasCookies() {
        if (navigator.cookieEnabled) {
            return true;
        }

        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;
    }
function hasCookies ( ) { if ( navigator . cookieEnabled ) { return true ; } 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 ; }
detects if the browser has Cookies enabled.
@return {Boolean} ret
detects if the browser has Cookies enabled .