Move shared image error handler to client.js

This commit is contained in:
Johannes Zellner
2021-04-07 10:47:29 +02:00
parent 6e4b9d8196
commit 27236a5692
3 changed files with 8 additions and 18 deletions
-9
View File
@@ -1,12 +1,3 @@
<script>
function imageErrorHandler(elem) {
'use strict';
elem.src = elem.getAttribute('fallback-icon');
elem.onerror = null; // avoid retry after default icon cannot be loaded
}
</script>
<!-- Modal postinstall -->
<div class="modal fade" id="postInstallModal" tabindex="-1" role="dialog">
<div class="modal-dialog">