mirror of
https://github.com/jbowdre/lolz.git
synced 2024-11-21 12:52:17 +00:00
exit quietly if typo container not present
This commit is contained in:
parent
af569eaadf
commit
e9386060c0
1 changed files with 4 additions and 4 deletions
|
@ -8,8 +8,10 @@
|
||||||
// implement typo
|
// implement typo
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
let typoElement = document.getElementById('typo');
|
let typoElement = document.getElementById('typo');
|
||||||
let typoText = "I write code to make imaginary computers run code written by less imaginary developers";
|
if (typoElement) {
|
||||||
typo(typoElement, typoText);
|
let typoText = "I write code to make imaginary computers run code written by less imaginary developers";
|
||||||
|
typo(typoElement, typoText);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script src="https://res.jbowdre.lol/js/weather.js" defer></script>
|
<script src="https://res.jbowdre.lol/js/weather.js" defer></script>
|
||||||
|
@ -27,8 +29,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
observer.observe(themeSongContainer, { childList: true });
|
observer.observe(themeSongContainer, { childList: true });
|
||||||
} else {
|
|
||||||
console.log("No music container here.");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
Loading…
Reference in a new issue