Fix annotations on firefox
This commit is contained in:
		| @ -19,7 +19,7 @@ export function buildPlayer (video, player, videojs) { | |||||||
| } | } | ||||||
|  |  | ||||||
| function parseAnnotations (annotationsText) { | function parseAnnotations (annotationsText) { | ||||||
|   const splitted = annotationsText.split('\n\n') |   const splitted = annotationsText.split(/\n\r?\n\r?/) | ||||||
|  |  | ||||||
|   return splitted.map(s => buildAnnotation(s)) |   return splitted.map(s => buildAnnotation(s)) | ||||||
|                  .filter(a => !!a) |                  .filter(a => !!a) | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| { | { | ||||||
|   "name": "peertube-plugin-video-annotation", |   "name": "peertube-plugin-video-annotation", | ||||||
|   "description": "PeerTube plugin video annotation", |   "description": "PeerTube plugin video annotation", | ||||||
|   "version": "0.0.2", |   "version": "0.0.3", | ||||||
|   "author": "Chocobozzz", |   "author": "Chocobozzz", | ||||||
|   "bugs": "https://framagit.org/framasoft/peertube/peertube-plugin-video-annotation/issues", |   "bugs": "https://framagit.org/framasoft/peertube/peertube-plugin-video-annotation/issues", | ||||||
|   "clientScripts": [ |   "clientScripts": [ | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user