Navigation Menu

Skip to content

Commit

Permalink
fix: embeds rendering again
Browse files Browse the repository at this point in the history
Fixes #3047

For some reason, the live.js renderLivePreview function doesn't have
access to the "real" (and full) jsbin object, so it was missing the user
which I added an arb check for. It wasn't needed, so I reverted the
change but it's still odd that it's not available at that time.
  • Loading branch information
remy committed May 11, 2017
1 parent aee89ba commit ebff5a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions public/js/render/live.js
Expand Up @@ -350,11 +350,7 @@ var renderLivePreview = (function () {
iframe.setAttribute('frameBorder', '0');
iframe.setAttribute('name', '<proxy>');
$live.prepend(iframe);
var src = jsbin.runner;
if (jsbin.user.pro) {
src += '?pro=1';
}
iframe.src = src;
iframe.src = jsbin.runner;
try {
iframe.contentWindow.name = '/' + jsbin.state.code + '/' + jsbin.state.revision;
} catch (e) {
Expand Down

0 comments on commit ebff5a4

Please sign in to comment.