template element method change

This commit is contained in:
Heydon Pickering 2017-08-24 17:15:19 +01:00
parent f0f2c8b7ce
commit ed3ef9e384
4 changed files with 4 additions and 4 deletions

View File

@ -526,7 +526,7 @@ toggle.addEventListener('click', (e) => {
var demoContent = template.content;
var standalone = window.open();
script.textContent = standaloneScript;
standalone.document.body.appendChild(document.importNode(template.content, true));
standalone.document.body.appendChild(template.content.cloneNode(true));
standalone.document.title = 'demo ' + "414e06a48e755bf9e43e5e2596f9ea7a";
});

View File

@ -1900,7 +1900,7 @@ toggle.addEventListener('click', (e) => {
var demoContent = template.content;
var standalone = window.open();
script.textContent = standaloneScript;
standalone.document.body.appendChild(document.importNode(template.content, true));
standalone.document.body.appendChild(template.content.cloneNode(true));
standalone.document.title = 'demo ' + "414e06a48e755bf9e43e5e2596f9ea7a";
});

File diff suppressed because one or more lines are too long

View File

@ -40,7 +40,7 @@
var demoContent = template.content;
var standalone = window.open();
script.textContent = standaloneScript;
standalone.document.body.appendChild(document.importNode(template.content, true));
standalone.document.body.appendChild(template.content.cloneNode(true));
{{ if .Get "backgroundColor" }}
standalone.document.body.style.backgroundColor = {{ .Get "backgroundColor" | safeCSS }};
{{ end }}