mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +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,
|
...commonRules.whiteList,
|
||||||
area: ['shape', 'coords', 'href', 'alt'],
|
area: ['shape', 'coords', 'href', 'alt'],
|
||||||
article: [],
|
article: [],
|
||||||
audio: ['autoplay', 'controls', 'loop', 'preload', 'src'],
|
audio: ['controls', 'loop', 'preload', 'src'],
|
||||||
col: ['align', 'valign', 'span', 'width'],
|
col: ['align', 'valign', 'span', 'width'],
|
||||||
colgroup: ['align', 'valign', 'span', 'width'],
|
colgroup: ['align', 'valign', 'span', 'width'],
|
||||||
dd: [],
|
dd: [],
|
||||||
@@ -146,7 +146,7 @@ export const xss = new FilterXSS({
|
|||||||
thead: ['align', 'valign'],
|
thead: ['align', 'valign'],
|
||||||
tr: ['rowspan', 'align', 'valign'],
|
tr: ['rowspan', 'align', 'valign'],
|
||||||
ul: [],
|
ul: [],
|
||||||
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width'],
|
video: ['controls', 'loop', 'preload', 'src', 'height', 'width'],
|
||||||
},
|
},
|
||||||
css: cssFilterOptions,
|
css: cssFilterOptions,
|
||||||
safeAttrValue(tag, name, value) {
|
safeAttrValue(tag, name, value) {
|
||||||
|
|||||||
Reference in new issue
Block a user