Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove embeded=1 only from line 115 to support also Firefox #360

Open
tiziodcaio opened this issue Feb 27, 2025 · 0 comments
Open

Remove embeded=1 only from line 115 to support also Firefox #360

tiziodcaio opened this issue Feb 27, 2025 · 0 comments

Comments

@tiziodcaio
Copy link

const stackBlitzUrl = `https://stackblitz.com/github/${
library.repo
}/tree/${branch}/examples/${examplePath}?embed=1&theme=${
isDark ? 'dark' : 'light'
}&preset=node&file=${sandboxFirstFileName}`

<a
href={stackBlitzUrl}
target="_blank"
className="flex gap-1 items-center"
rel="noreferrer"
>
<FaExternalLinkAlt /> StackBlitz
</a>

<iframe
src={
library.embedEditor === 'codesandbox'
? codesandboxUrl
: stackBlitzUrl
}
title={`${library.name} | ${examplePath}`}
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
className="flex-1 w-full overflow-hidden lg:rounded-lg shadow-xl shadow-gray-700/20 bg-white dark:bg-black"
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant