update localStorage detect