mirror of
https://github.com/jsbin/jsbin.git
synced 2026-02-01 16:46:05 +00:00
Tested in environment without run.jsbin.
This commit is contained in:
parent
59bfb9e5cd
commit
5e12d4a9e4
@ -289,7 +289,6 @@ var renderLivePreview = (function () {
|
||||
iframe = document.createElement('iframe');
|
||||
iframe.setAttribute('class', 'stretch');
|
||||
iframe.setAttribute('sandbox', 'allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts');
|
||||
// TODO update this so that it's environment agnostic
|
||||
iframe.src = jsbin.root.replace('jsbin', 'run.jsbin') + '/runner';
|
||||
$live.prepend(iframe);
|
||||
iframe.contentWindow.name = '/' + jsbin.state.code + '/' + jsbin.state.revision;
|
||||
|
||||
@ -377,7 +377,6 @@ var runner = (function () {
|
||||
|
||||
/**
|
||||
* Store what parent origin *should* be
|
||||
* TODO this should allow anything if x-origin protection should be disabled
|
||||
*/
|
||||
runner.parent = {};
|
||||
runner.parent.origin = window.location.origin.replace('run.', '');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user