@vidispine/vdt-react 0.15.0-pre.24 → 0.15.0-pre.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +7 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -3270,9 +3270,13 @@ function useHoverScrub() {
|
|
|
3270
3270
|
var uri = srcList[index];
|
|
3271
3271
|
|
|
3272
3272
|
if (uri && typeof uri === 'string') {
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3273
|
+
try {
|
|
3274
|
+
var timeCodeFromURI = uri.split('version')[1].split('/')[1].split('?')[0];
|
|
3275
|
+
var timecodeText = vdtJs.formatTimeCodeText(timeCodeFromURI);
|
|
3276
|
+
timeCodes.push(timecodeText.toSeconds().toFixed(0));
|
|
3277
|
+
} catch (error) {
|
|
3278
|
+
return;
|
|
3279
|
+
}
|
|
3276
3280
|
}
|
|
3277
3281
|
}
|
|
3278
3282
|
|