Tested in environment without run.jsbin.

This commit is contained in:
Tom Ashworth 2013-07-01 17:16:26 +01:00
parent 59bfb9e5cd
commit 5e12d4a9e4
2 changed files with 0 additions and 2 deletions

View File

@ -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;

View File

@ -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.', '');