8000 Guard iframe manipulation on RunKit embed to prepare for new version.… · lodash/lodash.com@75f2f57 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75f2f57

Browse files
tolmaskyjdalton
authored andcommitted
Guard iframe manipulation on RunKit embed to prepare for new version. (#217)
Reviewed by @tolmasky.
1 parent 1c09bbe commit 75f2f57

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

assets/js/docs.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,11 @@
443443
'source': source,
444444
'theme': 'atom-light-syntax',
445445
'onLoad': function(notebook) {
446-
var iframe = parent.lastElementChild
447-
iframe.style.cssText = 'height:' + iframe.style.height
448-
iframe.classList.add('repl')
446+
if (!RunKit.version) {
447+
var iframe = parent.lastElementChild
448+
iframe.style.cssText = 'height:' + iframe.style.height
449+
iframe.classList.add('repl')
450+
}
449451
notebook.evaluate()
450452
}
451453
})

0 commit comments

Comments
 (0)
0