mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
Fix js error of Cannot read properties of null (reading '0')
This commit is contained in:
parent
187cd3c112
commit
83909cd1fa
@ -145,7 +145,7 @@ class multi_video extends HTMLElement {
|
||||
{
|
||||
video = document.createElement('video');
|
||||
// get duration from url duration param which is necessary for setting duration time of webm file
|
||||
let params = new URLSearchParams(value[i].match(/\?.*/)[0]);
|
||||
let params = new URLSearchParams(value[i].split('?')[1]||'');
|
||||
duration = parseInt(params.get('duration')||'0');
|
||||
video.src = value[i];
|
||||
this._videos[i] = {
|
||||
|
Loading…
Reference in New Issue
Block a user