Work around iOS limitations on localstorage in private mode.