fix(kb.gbapp): Fix in Video of .md.
This commit is contained in:
parent
a427566196
commit
30cdef67ee
1 changed files with 1 additions and 1 deletions
|
@ -695,7 +695,7 @@ export class KBService implements IGBKBService {
|
|||
renderer.oldImage = renderer.image;
|
||||
renderer.image = function (href, title, text) {
|
||||
var videos = ['webm', 'mp4', 'mov'];
|
||||
var filetype = href.split('.')[1];
|
||||
var filetype = href.split('.').pop();
|
||||
if (videos.indexOf(filetype) > -1) {
|
||||
var out = '<video autoplay loop alt="' + text + '">'
|
||||
+ ' <source src="' + href + '" type="video/' + filetype + '">'
|
||||
|
|
Loading…
Add table
Reference in a new issue