2 ms·localStorage would work fine for saving state.by lupire 5y agolocalStorage would work fine for saving state.