fix: font selection update

This commit is contained in:
Marcus Noble 2021-07-28 21:10:03 +01:00
parent 0bc8c62135
commit 7464001cd9

View File

@ -97,8 +97,9 @@
<script>
document.getElementById('font').addEventListener('change', function() {
document.getElementById('font').style.fontFamily = document.getElementById('font').value;
document.getElementById('text').style.fontFamily = document.getElementById('font').value;
let selectedFont = `'${document.getElementById('font').value}'`;
document.getElementById('font').style.fontFamily = selectedFont;
document.getElementById('text').style.fontFamily = selectedFont;
});
</script>
</body>