mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: disable media autoplay
This commit is contained in:
1 file changed
+2
-2
@@ -121,7 +121,7 @@ export const xss = new FilterXSS({
|
||||
...commonRules.whiteList,
|
||||
area: ['shape', 'coords', 'href', 'alt'],
|
||||
article: [],
|
||||
audio: ['autoplay', 'controls', 'loop', 'preload', 'src'],
|
||||
audio: ['controls', 'loop', 'preload', 'src'],
|
||||
col: ['align', 'valign', 'span', 'width'],
|
||||
colgroup: ['align', 'valign', 'span', 'width'],
|
||||
dd: [],
|
||||
@@ -146,7 +146,7 @@ export const xss = new FilterXSS({
|
||||
thead: ['align', 'valign'],
|
||||
tr: ['rowspan', 'align', 'valign'],
|
||||
ul: [],
|
||||
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width'],
|
||||
video: ['controls', 'loop', 'preload', 'src', 'height', 'width'],
|
||||
},
|
||||
css: cssFilterOptions,
|
||||
safeAttrValue(tag, name, value) {
|
||||
|
||||
Reference in new issue
Block a user