mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 22:23:23 +00:00
Front: turn Webcam.js error from an alert to a console log
This commit is contained in:
parent
9176a03a8a
commit
7fb26f9e45
@ -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.hooks.error = function(msg) { console.log("Webcam.js error: " + msg) }
|
||||||
Webcam.set({
|
Webcam.set({
|
||||||
width: 320,
|
width: 320,
|
||||||
height: 240,
|
height: 240,
|
||||||
|
Loading…
Reference in New Issue
Block a user