Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
reruin committed Feb 14, 2020
1 parent 5e4168d commit 201e633
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion plugins/preview.media.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = ({getSource , getPluginOption , setPluginOption}) => {
<script src="https://cdn.bootcss.com/dplayer/1.25.0/DPlayer.min.js"></script>
<div id="dplayer" style="margin-top:32px;height:60vh;"></div>
<script>
var url = '${decodeUrl(req)}' , subtitle = url.replace(/\\.[^\\?]+/,'.vtt');
var url = '${decodeUrl(req)}' , subtitle = url.replace(/\\.[^\\.]+?(\\?|$)/,'.vtt$1');
var dp = new DPlayer({
container: document.getElementById('dplayer'),
video:{
Expand Down

0 comments on commit 201e633

Please sign in to comment.