You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/components/Diff.tsx
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -80,12 +80,15 @@ function Diff(props: DiffProps): JSX.Element {
80
80
returnnewObj;// return the cleaned state snapshot(s)
81
81
};
82
82
83
+
console.log('previousDisplay before stateless cleaning: ',previous);
83
84
constpreviousDisplay: StatelessCleaning=statelessCleaning(previous);// displays stateful data from the first snapshot that was taken before our current snapshot.
84
-
85
+
console.log('previousDisplay after stateless cleaning: ',previousDisplay);
85
86
constdelta: StatelessCleaning=diff(previousDisplay,snapshot);// diff function from 'jsondiffpatch' returns the difference in state between 'previousDisplay' and 'snapshot'
86
-
87
+
console.log('delta: ',delta);
87
88
consthtml: StatelessCleaning=formatters.html.format(delta,previousDisplay);// formatters function from 'jsondiffpatch' returns an html string that shows the difference between delta and the previousDisplay
89
+
console.log('html: ',html);
88
90
91
+
console.log(show);
89
92
if(show)
90
93
formatters.html.showUnchanged();// shows unchanged values if we're on the '/diffRaw' path
returntrue;// return true so that port remains open
221
222
223
+
// emptySnap actions comes through when the user uses the 'clear' button on the front end to clear the snapshot history and move slider back to 0 position
222
224
case'emptySnap':
225
+
console.log('tabsObj on clear: ',tabsObj);
223
226
tabsObj[tabId].snapshots=[tabsObj[tabId].snapshots[tabsObj[tabId].snapshots.length-1]];// reset snapshots to page last state recorded
0 commit comments