Skip to content

Commit 8316132

Browse files
author
Miguel Barrenechea Sánchez
authored
Update index.js
1 parent 7f152e3 commit 8316132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function genFragment(
6464
node instanceof HTMLIFrameElement
6565
) {
6666
const entityConfig = {};
67-
entityConfig.src = node.src;
67+
entityConfig.src = node.getAttribute ? node.getAttribute('src') || node.src : node.src;
6868
entityConfig.height = node.height;
6969
entityConfig.width = node.width;
7070
const entityId = Entity.__create(

0 commit comments

Comments
 (0)