Store alerts in local storage.