Skip to content

Commit

Permalink
fix(kb.gbapp): Fix in Video of .md.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed May 9, 2021
1 parent a427566 commit 30cdef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kb.gbapp/services/KBService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '">'
Expand Down

0 comments on commit 30cdef6

Please sign in to comment.