Fix annotations on firefox

This commit is contained in:
Chocobozzz 2020-08-24 10:12:36 +02:00
parent 56b8704649
commit 1b5f1d737a
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ export function buildPlayer (video, player, videojs) {
}
function parseAnnotations (annotationsText) {
const splitted = annotationsText.split('\n\n')
const splitted = annotationsText.split(/\n\r?\n\r?/)
return splitted.map(s => buildAnnotation(s))
.filter(a => !!a)

View File

@ -1,7 +1,7 @@
{
"name": "peertube-plugin-video-annotation",
"description": "PeerTube plugin video annotation",
"version": "0.0.2",
"version": "0.0.3",
"author": "Chocobozzz",
"bugs": "https://framagit.org/framasoft/peertube/peertube-plugin-video-annotation/issues",
"clientScripts": [