Skip to content

Commit

Permalink
Update: Remove check if markup is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Feb 13, 2024
1 parent 264799e commit 5552e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Private/Assets/Loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function initLoader({ callback = () => {}, rootElement = document, markup = '' }
const elements = getElements(rootElement);

// Early check if there are no elements with data-loader
if (!markup && elements.length === 0) {
if (elements.length === 0) {
callback();
return;
}
Expand Down

0 comments on commit 5552e56

Please sign in to comment.