`; return; } const termsResponse = await fetch(policyUrl); const termsData = await termsResponse.json(); const notices = termsData?.notices; const firstNoticeKey = Object.keys(notices)[0]; const notice = notices[firstNoticeKey]; const termsContentRaw = notice?.content; // Get and format the oneTrust timestamp const rawTimestamp = notice?.timestamp; const formattedTimestamp = rawTimestamp ? (() => { const date = new Date(rawTimestamp); const datePart = date.toLocaleDateString('en-GB'); const timePart = date.toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false }); return `${datePart}, ${timePart}`; })() : 'Unknown Date'; // oneTrust has its own classes and style; we make small adjustments to match it to our site style const styledTermsContent = termsContentRaw .replaceAll('

', '') .replaceAll('

', '

') .replaceAll('

', '

') .replaceAll('

TIMESTAMP', `${formattedTimestamp}` ) // Spanish language Terms (and not Privacy) come back from OneTrust with an extra div that wrap the page and messes the style. It makes no sense but we remove the style: .replace( `style="margin:0px;padding:0px;direction:ltr;color:rgb( 0 , 0 , 0 );font-family:'segoe ui' , 'segoe ui web' , 'arial' , 'verdana' , sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;white-space:normal;background-color:rgb( 255 , 255 , 255 )"`, ''); this.content = styledTermsContent || `

Notice content not found
`; } catch (error) { this.content = `
Unable to load the privacy notice. Please try again
`; } finally { this.loading = false; } } } }

Looks like you don't have any active episode

Browse Spreaker Catalogue to discover great new content

Current

Podcast Cover

Looks like you don't have any episodes in your queue

Browse Spreaker Catalogue to discover great new content

Next Up

Episode Cover Episode Cover

It's so quiet here...

Time to discover new episodes!

Discover
Your Library
Search