Skip to content

Commit f7d88e4

Browse files
author
Ishavyas9
committed
video fix
1 parent 29ef837 commit f7d88e4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

custom.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183

184184
// Append cookies to the URL before navigation
185185
const anchorElement = e.currentTarget;
186-
const currentHref = anchorElement?.href || 'https://stage-accounts.lambdatestinternal.com/register';
186+
const currentHref = anchorElement?.href || 'https://www.testmuai.com/register/';
187187
const urlWithCookies = getLoginUrlWithCookies(currentHref);
188188
if (anchorElement) {
189189
anchorElement.href = urlWithCookies;
@@ -324,6 +324,7 @@
324324
var iframe = document.createElement("iframe");
325325
iframe.setAttribute("frameborder", "0");
326326
iframe.setAttribute("allowfullscreen", "");
327+
iframe.setAttribute("referrerpolicy", "strict-origin-when-cross-origin");
327328
iframe.setAttribute("src", "https://www.youtube.com/embed/" + this.dataset.embed + "?rel=0&showinfo=0&autoplay=1");
328329
this.innerHTML = "";
329330
this.appendChild(iframe);

src/component/videoEmbed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const VideoEmbed = ({ src, title }) => (
1616
allowFullScreen
1717
allow="encrypted-media; fullscreen;"
1818
loading="lazy"
19+
referrerPolicy="strict-origin-when-cross-origin"
1920
/>
2021
</div>
2122
);

0 commit comments

Comments
 (0)