function storageAvailable() {
    let storage;
    try {
        storage = window.localStorage;
        storage.setItem("Riven is amazing", "Hell yeah");
        storage.removeItem("Riven is amazing");
        return true;
    }
    catch(e) {
        return false;
    }
}
/*
 * Function to check if localStorage even exists here. If it doesn't, people are using a weird browser and we can't support them.
 * Tests the storage by adding and removing an object from it. If it all succeeds, we can carry on and run this script
 */
Function to check if localStorage even exists here. If it doesn't, people are using a weird browser and we can't support them.
Tests the storage by adding and removing an object from it. If it all succeeds, we can carry on and run this script
Function to check if localStorage even exists here . If it doesn ' t people are using a weird browser and we can ' t support them . Tests the storage by adding and removing an object from it . If it all succeeds we can carry on and run this script
function storageAvailable() {
    let storage;
    try {
        storage = window.localStorage;
        storage.setItem("Riven is amazing", "Hell yeah");
        storage.removeItem("Riven is amazing");
        return true;
    }
    catch(e) {
        return false;
    }
}
function storageAvailable ( ) { let storage ; try { storage = window . localStorage ; storage . setItem ( "Riven is amazing" , "Hell yeah" ) ; storage . removeItem ( "Riven is amazing" ) ; return true ; } catch ( e ) { return false ; } }
Function to check if localStorage even exists here.
Function to check if localStorage even exists here .