Skip to content

Commit

Permalink
most Recent Tab Value fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Data-is-a-lie committed May 20, 2024
1 parent f9b83cb commit 5e1c072
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
5 changes: 1 addition & 4 deletions build/js/awesomeSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -37580,6 37580,7 @@ var tabs = function () {
var currentTabStateString = localStorage.getItem('tabState');
var currentTabState = JSON.parse(currentTabStateString);
var MostRecentTabValue; // Declare a variable to store the most recent tab
MostRecentTabValue = "js-tab-panel-character";

// Iterate through tab states to find the most recent tab
var isTabValueSet = false;
Expand All @@ -37590,10 37591,6 @@ var tabs = function () {
localStorage.setItem('MostRecentTabValue', MostRecentTabValue);
isTabValueSet = true;
console.log("isTabValueSet", isTabValueSet);
} else {
console.log("isTabValueSet not true", isTabValueSet);
MostRecentTabValue = 'js-tab-panel-character';
localStorage.setItem('MostRecentTabValue', MostRecentTabValue);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/js/awesomeSheet.min.js

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions build/js/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 138,7 @@ function mostRecentTab() {
const currentTabState = JSON.parse(currentTabStateString);

let MostRecentTabValue; // Declare a variable to store the most recent tab
MostRecentTabValue = "js-tab-panel-character"

// Iterate through tab states to find the most recent tab
let isTabValueSet = false;
Expand All @@ -150,12 151,7 @@ function mostRecentTab() {
isTabValueSet = true;
console.log("isTabValueSet", isTabValueSet);
}
else {
console.log("isTabValueSet not true", isTabValueSet);
MostRecentTabValue = 'js-tab-panel-character';
localStorage.setItem('MostRecentTabValue', MostRecentTabValue);

}

}

}
Expand Down
Loading

0 comments on commit 5e1c072

Please sign in to comment.