Verbessere die Logik zum Laden von Anzeigen: Sofortige Anzeige bei Vorliegen von Zustimmung, Auto-Load oder Debug-Option
This commit is contained in:
@@ -303,8 +303,8 @@ async function loadAdIfNeeded() {
|
||||
onMounted(async () => {
|
||||
if (!isEnabled.value) return;
|
||||
|
||||
// If consent present, load immediately (but still lazy after nextTick to avoid blocking)
|
||||
if (hasConsent()) {
|
||||
// If consent present, autoLoad, or debugForceLoad => load immediately
|
||||
if (hasConsent() || autoLoad || debugForceLoad) {
|
||||
await nextTick();
|
||||
await loadAdIfNeeded();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user