Skip to content

Commit a486a5f

Browse files
committed
优化 对后续载入的视频音频标签处理
1 parent 3955f20 commit a486a5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HTML5Volume.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
// 判断该视频/音频元素是否已监听事件
9090
function isFirstEvent(target) {
91-
//if (!target.controls) return; // 如果视频/音频已经有了自己的控件(即没有使用 HTML5 默认的控件),则退出
91+
if (!target.controls) return; // 如果视频/音频已经有了自己的控件(即没有使用 HTML5 默认的控件),则退出
9292
modifyVolume(target);
9393
// 如果没有该属性,则代表是还未监听事件
9494
if (target.dataset.html5VolumeXiu != 'true') {

0 commit comments

Comments
 (0)