From c42db76553957b0d6587966f4bd1d37c58536bc3 Mon Sep 17 00:00:00 2001 From: Michele Azzolari Date: Wed, 10 Oct 2018 10:22:02 +0200 Subject: [PATCH] Fixes #14 --- assets/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/app.js b/assets/app.js index 5a6cd2d..cd5ab3c 100644 --- a/assets/app.js +++ b/assets/app.js @@ -41,6 +41,7 @@ const getTemplateHtml = template => { const valueChange = value => { const iframehtml = document.getElementById('iframe').contentWindow.document.getElementById(value); + if(!iframehtml) return; const val = document.getElementById(value).value; iframehtml.innerHTML = val };