瀏覽代碼

fix bug

#1219 버그 수정
Lwnlcks 4 年之前
父節點
當前提交
03b9abd736
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      views/main_css/js/render_onmark.js

+ 2 - 2
views/main_css/js/render_onmark.js

@@ -551,7 +551,7 @@ function do_onmark_macro_render(data, data_js) {
             
             if(x_1 === 'youtube') {
                 var video_start = x_2.match(/,(?: *)start=([0-9]+)/);
-                video_start = video_start ? ('?' + video_start[1]) : '';
+                video_start = video_start ? ('?start=' + video_start[1]) : '';
                 
                 video_code = video_code.replace(/^https:\/\/www\.youtube\.com\/watch\?v=/, '');
                 video_code = video_code.replace(/^https:\/\/youtu\.be\//, '');
@@ -1354,4 +1354,4 @@ function do_onmark_render(
     } else {
     	console.log([data, data_js]);
     }
-}
+}