mirror of
https://github.com/gchq/CyberChef
synced 2026-01-16 07:23:24 +00:00
Fix tab bar shadows appearing when they shouldn't
This commit is contained in:
@@ -493,8 +493,8 @@ self.setInput = function(inputData) {
|
||||
self.refreshTabs = function(inputNum, direction) {
|
||||
const nums = self.getNearbyNums(inputNum, direction),
|
||||
inputNums = Object.keys(self.inputs),
|
||||
tabsLeft = (self.getSmallestInputNum(inputNums) !== nums[0]),
|
||||
tabsRight = (self.getLargestInputNum(inputNums) !== nums[nums.length - 1]);
|
||||
tabsLeft = (self.getSmallestInputNum(inputNums) !== nums[0] && nums.length > 0),
|
||||
tabsRight = (self.getLargestInputNum(inputNums) !== nums[nums.length - 1] && nums.length > 0);
|
||||
|
||||
self.postMessage({
|
||||
action: "refreshTabs",
|
||||
|
||||
Reference in New Issue
Block a user