mirror of
https://codeberg.org/kirche-im-netz/Startodon-Hub.git
synced 2025-08-19 09:08:19 +02:00
Alles via kirche.social laden
Gleicher Anbieter (LUKi), daher kein Datenschutzpopup notwendig
This commit is contained in:
parent
47460e0104
commit
089183abd8
18 changed files with 55 additions and 235 deletions
14
src/main.js
14
src/main.js
|
@ -2,24 +2,10 @@ import { createStarterKitElement, enhanceStarterKits } from './utils/starterkit-
|
|||
import { seededShuffleChildren } from './utils/shuffle-utils.js';
|
||||
import { initializeCreateStarterKitPopup } from './utils/create-starterkit.js';
|
||||
import { loadPostwall } from './components/postwall.js';
|
||||
import { checkConsent, setUserConsent, showConsentPopup } from './components/consentManager.js';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', async function () {
|
||||
// Starte sofort den Seitenaufbau
|
||||
initializeSite();
|
||||
|
||||
// Überprüfe parallel den Consent-Status
|
||||
const consent = checkConsent();
|
||||
if (!consent) {
|
||||
showConsentPopup(
|
||||
() => {
|
||||
setUserConsent(true);
|
||||
},
|
||||
() => {
|
||||
setUserConsent(false);
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
async function initializeSite() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue