function storageTest() {
        var mod = 'modernizr';
        try {
            sessionStorage.setItem(mod, mod);
            sessionStorage.removeItem(mod);
            return true;
        } catch (e) {
            return false;
        }
    }
/**
     * Test if sessionStorage is supported - taken from moderizr
     */
Test if sessionStorage is supported - taken from moderizr
Test if sessionStorage is supported - taken from moderizr
function storageTest() {
        var mod = 'modernizr';
        try {
            sessionStorage.setItem(mod, mod);
            sessionStorage.removeItem(mod);
            return true;
        } catch (e) {
            return false;
        }
    }
function storageTest ( ) { var mod = 'modernizr' ; try { sessionStorage . setItem ( mod , mod ) ; sessionStorage . removeItem ( mod ) ; return true ; } catch ( e ) { return false ; } }
Test if sessionStorage is supported - taken from moderizr
Test if sessionStorage is supported - taken from moderizr