Add a limit to the localstorage getter.