Commit 5accdbcc authored by tleb's avatar tleb

Front: use Webcam.on() for error handling

parent 7fb26f9e
Pipeline #2174 passed with stage
in 32 minutes and 19 seconds
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment