Mantenha o valor após a atualização do JavaScript
var someVarName = "value";
localStorage.setItem("someVarKey", someVarName);
Anthony Jr
var someVarName = "value";
localStorage.setItem("someVarKey", someVarName);