From 5552e564bbe792a72322b9a87acfad244e440a79 Mon Sep 17 00:00:00 2001 From: Jon Uhlmann Date: Tue, 13 Feb 2024 13:20:57 +0100 Subject: [PATCH] Update: Remove check if markup is set --- Resources/Private/Assets/Loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Private/Assets/Loader.ts b/Resources/Private/Assets/Loader.ts index 294cdfd..60d69eb 100644 --- a/Resources/Private/Assets/Loader.ts +++ b/Resources/Private/Assets/Loader.ts @@ -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; }