not using cloneNode

This commit is contained in:
Heydon Pickering 2017-08-25 11:49:05 +01:00
parent d23bc2ced2
commit ded88c34fd
4 changed files with 4 additions and 4 deletions

View File

@ -526,7 +526,7 @@ toggle.addEventListener('click', (e) => {
var launchButton = document.querySelector('[data-launch="js-demo-414e06a48e755bf9e43e5e2596f9ea7a"]'); var launchButton = document.querySelector('[data-launch="js-demo-414e06a48e755bf9e43e5e2596f9ea7a"]');
launchButton.addEventListener('click', function () { launchButton.addEventListener('click', function () {
var standalone = window.open(); var standalone = window.open();
standalone.document.body.appendChild(demoDiv); standalone.document.body.innerHTML = demoDiv.innerHTML;
var newScript = standalone.document.createElement('script'); var newScript = standalone.document.createElement('script');

View File

@ -1900,7 +1900,7 @@ toggle.addEventListener('click', (e) => {
var launchButton = document.querySelector('[data-launch="js-demo-414e06a48e755bf9e43e5e2596f9ea7a"]'); var launchButton = document.querySelector('[data-launch="js-demo-414e06a48e755bf9e43e5e2596f9ea7a"]');
launchButton.addEventListener('click', function () { launchButton.addEventListener('click', function () {
var standalone = window.open(); var standalone = window.open();
standalone.document.body.appendChild(demoDiv); standalone.document.body.innerHTML = demoDiv.innerHTML;
var newScript = standalone.document.createElement('script'); var newScript = standalone.document.createElement('script');

File diff suppressed because one or more lines are too long

View File

@ -40,7 +40,7 @@
var launchButton = document.querySelector('[data-launch="js-demo-{{ $uniq }}"]'); var launchButton = document.querySelector('[data-launch="js-demo-{{ $uniq }}"]');
launchButton.addEventListener('click', function () { launchButton.addEventListener('click', function () {
var standalone = window.open(); var standalone = window.open();
standalone.document.body.appendChild(demoDiv); standalone.document.body.innerHTML = demoDiv.innerHTML;
// For activating the script :-( // For activating the script :-(
var newScript = standalone.document.createElement('script'); var newScript = standalone.document.createElement('script');