Skip to content

Commit 870870e

Browse files
authored
Merge pull request #28 from mbarrenechea/patch-1
Iframe relative paths
2 parents 112fe7f + 8316132 commit 870870e

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)