Merge pull request #15 from macno/macno/issue-14

Loading templates dynamically
This commit is contained in:
Gabriel Simmer 2018-10-10 17:43:50 -07:00 committed by GitHub
commit acccfae8b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,7 @@ const getTemplateHtml = template => {
const valueChange = value => { const valueChange = value => {
const iframehtml = document.getElementById('iframe').contentWindow.document.getElementById(value); const iframehtml = document.getElementById('iframe').contentWindow.document.getElementById(value);
if(!iframehtml) return;
const val = document.getElementById(value).value; const val = document.getElementById(value).value;
iframehtml.innerHTML = val iframehtml.innerHTML = val
}; };