not using cloneNode
This commit is contained in:
parent
d23bc2ced2
commit
ded88c34fd
|
@ -526,7 +526,7 @@ toggle.addEventListener('click', (e) => {
|
|||
var launchButton = document.querySelector('[data-launch="js-demo-414e06a48e755bf9e43e5e2596f9ea7a"]');
|
||||
launchButton.addEventListener('click', function () {
|
||||
var standalone = window.open();
|
||||
standalone.document.body.appendChild(demoDiv);
|
||||
standalone.document.body.innerHTML = demoDiv.innerHTML;
|
||||
|
||||
|
||||
var newScript = standalone.document.createElement('script');
|
||||
|
|
|
@ -1900,7 +1900,7 @@ toggle.addEventListener('click', (e) => {
|
|||
var launchButton = document.querySelector('[data-launch="js-demo-414e06a48e755bf9e43e5e2596f9ea7a"]');
|
||||
launchButton.addEventListener('click', function () {
|
||||
var standalone = window.open();
|
||||
standalone.document.body.appendChild(demoDiv);
|
||||
standalone.document.body.innerHTML = demoDiv.innerHTML;
|
||||
|
||||
|
||||
var newScript = standalone.document.createElement('script');
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -40,7 +40,7 @@
|
|||
var launchButton = document.querySelector('[data-launch="js-demo-{{ $uniq }}"]');
|
||||
launchButton.addEventListener('click', function () {
|
||||
var standalone = window.open();
|
||||
standalone.document.body.appendChild(demoDiv);
|
||||
standalone.document.body.innerHTML = demoDiv.innerHTML;
|
||||
|
||||
// For activating the script :-(
|
||||
var newScript = standalone.document.createElement('script');
|
||||
|
|
Loading…
Reference in New Issue
Block a user