Cleaned up browser console errors

Affects issues:
- Close #2176
This commit is contained in:
Risto Lahtela 2022-01-06 14:06:21 +02:00
parent 9ae2c07920
commit 7a3ae85ac4
3 changed files with 4 additions and 4 deletions

View File

@ -473,9 +473,11 @@
Highcharts.setOptions(Highcharts.theme);
updateGraphs();
} catch (e) {
if ("Highcharts is not defined" === e.message) {
if ("Highcharts is not defined" === e.message || "updateGraphs is not defined") {
// Highcharts isn't loaded, can be ignored
} else console.error(e);
} else {
console.error(e);
}
}
}

View File

@ -695,7 +695,6 @@
<script src="../vendor/datatables/datatables.min.js?v=${version}"></script>
<link href='../vendor/datatables/datatables.min.css?v=${version}' rel='stylesheet'/>
<script src="../vendor/highcharts/highcharts.js?v=${version}"></script>
<script src="../vendor/highcharts/modules/stock.js?v=${version}"></script>
<script src="../vendor/highcharts/modules/drilldown.js?v=${version}"></script>
<script src="../vendor/highcharts/modules/no-data-to-display.js?v=${version}"></script>
<link href='../vendor/fullcalendar/fullcalendar.min.css?v=${version}' rel='stylesheet'/>

View File

@ -1336,7 +1336,6 @@
<script src="../vendor/datatables/datatables.min.js?v=${version}"></script>
<link href='../vendor/datatables/datatables.min.css?v=${version}' rel='stylesheet'/>
<script src="../vendor/highcharts/highcharts.js?v=${version}"></script>
<script src="../vendor/highcharts/modules/stock.js?v=${version}"></script>
<script src="../vendor/highcharts/modules/map.js?v=${version}"></script>
<script src="../vendor/highcharts/mapdata/world.js?v=${version}"></script>
<script src="../vendor/highcharts/modules/drilldown.js?v=${version}"></script>