We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc643de commit d0f26f6Copy full SHA for d0f26f6
blocks/hotspot/hotspot.js
@@ -26,8 +26,9 @@ export default function decorate(block) {
26
const allowedVideoDomains = ['youtube.com', 'vimeo.com', 'sidekick-library--aem-block-collection--adobe'];
27
try {
28
const url = new URL(content);
29
- //the below code can be updated to include more video hosting sites
30
- const isTrustedDomain = allowedVideoDomains.some((domain) => url.hostname.includes(domain));
+ // the below code can be updated to include more video hosting sites
+ const domainCheck = (domain) => url.hostname.includes(domain);
31
+ const isTrustedDomain = allowedVideoDomains.some(domainCheck);
32
if (isTrustedDomain) {
33
video.innerHTML = `
34
<div class="embed-default">
0 commit comments