added localStorage quota limitation handling