Skip to content

Commit 89d4f0a

Browse files
pshrmnCompuIves
authored andcommitted
Set iframe title in embed code (codesandbox#1600)
1 parent a0263d4 commit 89d4f0a

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/pages/common/Modals/ShareModal

1 file changed

+1
-1
lines changed

packages/app/src/app/pages/common/Modals/ShareModal/getCode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const getIframeScript = (sandbox, mainModule, state) =>
6868
sandbox,
6969
mainModule,
7070
state
71-
)}" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>`;
71+
)}" title="${sandbox.title || sandbox.id}" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>`;
7272

7373
// eslint-disable-next-line
7474
export const getButtonMarkdown = (sandbox, mainModule, state) => {

0 commit comments

Comments
 (0)