Skip to content

Commit d6a9ca1

Browse files
committed
removed console.logs
1 parent c391191 commit d6a9ca1

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

src/app/slices/mainSlice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const mainSlice = createSlice({
4848
tabs[currentTab].playing = false;
4949

5050
const currSnapshot = tabs[currentTab].snapshots[tabs[currentTab].currLocation.index]; // current snapshot
51-
const currAxSnapshot = tabs[currentTab].axSnapshots[tabs[currentTab].currLocation.index]; // current snapshot
51+
const currAxSnapshot = tabs[currentTab].axSnapshots[tabs[currentTab].currLocation.index]; // current accessibility tree snapshot
5252

5353
tabs[currentTab].hierarchy.stateSnapshot = { ...currSnapshot }; // resets hierarchy to page current snapshot
5454
tabs[currentTab].hierarchy.axSnapshot = { ...currAxSnapshot }; // resets hierarchy to current accessibility tree snapshot
@@ -60,7 +60,7 @@ export const mainSlice = createSlice({
6060
tabs[currentTab].index = 1;
6161
tabs[currentTab].currParent = 0;
6262
tabs[currentTab].currBranch = 1;
63-
tabs[currentTab].currLocation = tabs[currentTab].hierarchy;
63+
tabs[currentTab].currLocation = tabs[currentTab].hierarchy; // reset currLocation
6464
tabs[currentTab].seriesSavedStatus = false;
6565
},
6666

src/extension/background.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,6 @@ chrome.runtime.onConnect.addListener((port) => {
358358

359359
// 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
360360
case 'emptySnap':
361-
console.log(
362-
'background.js: top of emptySnap tabsObj[tabId]:',
363-
JSON.parse(JSON.stringify(tabsObj[tabId])),
364-
);
365361
tabsObj[tabId].snapshots = [tabsObj[tabId].snapshots[tabsObj[tabId].currLocation.index]]; // reset snapshots to current page state
366362
tabsObj[tabId].hierarchy.children = []; // resets hierarchy
367363
tabsObj[tabId].hierarchy.stateSnapshot = {
@@ -372,21 +368,13 @@ chrome.runtime.onConnect.addListener((port) => {
372368
tabsObj[tabId].axSnapshots = [
373369
JSON.parse(JSON.stringify(tabsObj[tabId].axSnapshots[tabsObj[tabId].currLocation.index])),
374370
]; // resets axSnapshots to current page state
375-
console.log(
376-
'background.js: tabsObj[tabId].axSnapshots:',
377-
JSON.parse(JSON.stringify(tabsObj[tabId].axSnapshots)),
378-
);
379371
tabsObj[tabId].hierarchy.axSnapshot = JSON.parse(
380372
JSON.stringify(tabsObj[tabId].axSnapshots[0]),
381373
); // resets hierarchy to ax tree of current page state
382374
tabsObj[tabId].index = 1; //reset index
383375
tabsObj[tabId].currParent = 0; // reset currParent
384376
tabsObj[tabId].currBranch = 1; // reset currBranch
385-
tabsObj[tabId].currLocation = tabsObj[tabId].hierarchy;
386-
console.log(
387-
'background.js: bottom of emptySnap tabsObj[tabId]:',
388-
JSON.parse(JSON.stringify(tabsObj[tabId])),
389-
);
377+
tabsObj[tabId].currLocation = tabsObj[tabId].hierarchy; // reset currLocation
390378

391379
return true; // return true so that port remains open
392380

0 commit comments

Comments
 (0)