Merge branch 'fix-webcam-error' into 'master'

Front: turn Webcam.js error from an alert to a console log

See merge request ae/Sith!265
This commit is contained in:
Antoine Bartuccio 2020-03-05 19:20:22 +01:00
commit 7ee4557ab5

View File

@ -52,6 +52,7 @@
{% if not form.instance.profile_pict %} {% if not form.instance.profile_pict %}
<script src="{{ static('core/js/webcam.js') }}"></script> <script src="{{ static('core/js/webcam.js') }}"></script>
<script language="JavaScript"> <script language="JavaScript">
Webcam.on('error', function(msg) { console.log('Webcam.js error: ' + msg) })
Webcam.set({ Webcam.set({
width: 320, width: 320,
height: 240, height: 240,