Skip to content

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

@tiziodcaio

Description

@tiziodcaio

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"
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions