diff --git a/web_head.html b/web_head.html index 1536daa..ab330e0 100644 --- a/web_head.html +++ b/web_head.html @@ -8,8 +8,10 @@ // implement typo document.addEventListener('DOMContentLoaded', function() { let typoElement = document.getElementById('typo'); - let typoText = "I write code to make imaginary computers run code written by less imaginary developers"; - typo(typoElement, typoText); + if (typoElement) { + let typoText = "I write code to make imaginary computers run code written by less imaginary developers"; + typo(typoElement, typoText); + } }); @@ -27,8 +29,6 @@ document.addEventListener('DOMContentLoaded', function() { }); }); observer.observe(themeSongContainer, { childList: true }); - } else { - console.log("No music container here."); } }); \ No newline at end of file