corrected spelling localStorage.platform