mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-22 04:09:22 +00:00
Added guard if no recent updated features section
This commit is contained in:
parent
1c22165eff
commit
b65a47ee97
@ -112,6 +112,7 @@ function setAsDefault(value) {
|
|||||||
|
|
||||||
function adjustVisibleElements() {
|
function adjustVisibleElements() {
|
||||||
const container = document.querySelector('.recent-features');
|
const container = document.querySelector('.recent-features');
|
||||||
|
if(!container) return;
|
||||||
const subElements = Array.from(container.children);
|
const subElements = Array.from(container.children);
|
||||||
|
|
||||||
let totalWidth = 0;
|
let totalWidth = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user