Skip to content

Commit

Permalink
fix src
Browse files Browse the repository at this point in the history
  • Loading branch information
elringus committed Nov 1, 2023
1 parent 8bfcf44 commit 557ac8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.vitepress/ext/markdown/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function buildImageTags(match) {
function buildVideoTags(match) {
const size = getMediaSize(match[2]);
const source = `<source data-src="${match[2]}" type="video/mp4">`;
return `<video class="video" preload="none" loop autoplay muted playsinline poster="/assets/img/video-poster.svg" width="${size.width}" height="${size.height}">${source}</video>`;
return `<video src="${match[2]}" class="video" preload="none" loop autoplay muted playsinline poster="/assets/img/video-poster.svg" width="${size.width}" height="${size.height}">${source}</video>`;
}

/** @param {string[]} match */
Expand Down

0 comments on commit 557ac8e

Please sign in to comment.