mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
Front: use Webcam.on() for error handling
This commit is contained in:
parent
7fb26f9e45
commit
5accdbccbb
@ -52,7 +52,7 @@
|
||||
{% if not form.instance.profile_pict %}
|
||||
<script src="{{ static('core/js/webcam.js') }}"></script>
|
||||
<script language="JavaScript">
|
||||
Webcam.hooks.error = function(msg) { console.log("Webcam.js error: " + msg) }
|
||||
Webcam.on('error', function(msg) { console.log('Webcam.js error: ' + msg) })
|
||||
Webcam.set({
|
||||
width: 320,
|
||||
height: 240,
|
||||
|
Loading…
Reference in New Issue
Block a user