Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: check nocookie too

Marc Seitz29780a0dda02
diff --git a/components/datarooms/settings/introduction-settings.tsx b/components/datarooms/settings/introduction-settings.tsx
index 41b0c7b5..adb355d5 100644
--- a/components/datarooms/settings/introduction-settings.tsx
+++ b/components/datarooms/settings/introduction-settings.tsx
@@ -460,7 +460,7 @@ function renderContent(content: any): React.ReactNode {
// Handle different YouTube URL formats
const youtubeMatch = src.match(
- /(?:youtube\.com\/(?:embed\/|watch\?v=)|youtu\.be\/)([^?&]+)/,
+ /(?:youtube(?:-nocookie)?\.com\/(?:embed\/|watch\?v=)|youtu\.be\/)([^?&]+)/,
);
if (youtubeMatch) {
videoId = youtubeMatch[1];
diff --git a/components/view/dataroom/introduction-modal.tsx b/components/view/dataroom/introduction-modal.tsx
index 76519562..f7fe5b77 100644
--- a/components/view/dataroom/introduction-modal.tsx
+++ b/components/view/dataroom/introduction-modal.tsx
@@ -203,7 +203,7 @@ function renderContent(content: any): React.ReactNode {
// Handle different YouTube URL formats
const youtubeMatch = src.match(
- /(?:youtube\.com\/(?:embed\/|watch\?v=)|youtu\.be\/)([^?&]+)/,
+ /(?:youtube(?:-nocookie)?\.com\/(?:embed\/|watch\?v=)|youtu\.be\/)([^?&]+)/,
);
if (youtubeMatch) {
videoId = youtubeMatch[1];