Persist localStorage changes made during pause events on iOS