fix: fontawesome missing font

This commit is contained in:
Marcin Czerniak 2021-04-27 14:36:58 +02:00
parent abcde26ef4
commit 3bc4c76fc4
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
<!-- Dependencies -->
<script src="fontawesome/js/all.min.js"></script>
<link rel="stylesheet" href="fontawesome/css/all.min.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400&display=swap" rel="stylesheet">

View File

@ -1,4 +1,4 @@
window.addEventListener('DOMContentLoaded', () => document.fonts.ready.then(() => {
window.addEventListener('DOMContentLoaded', () => document.fonts.load('900 14px "Font Awesome 5 Free"').then(() => {
const floorCanvas = document.getElementById('canvas-floor');
const gridCanvas = document.getElementById('canvas-grid');
const agentCanvas = document.getElementById('canvas-agent');