Write your code here to restore the global state.if (e.IsUndoRedo){// An undo or redo operation has occurred and the DOM ...