mirror of
https://github.com/goodtube4u/goodtube.git
synced 2025-11-22 10:16:11 +00:00
CSP update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
let goodTube_csp = false;
|
||||
if (window.trustedTypes && window.trustedTypes.createPolicy && DOMPurify) {
|
||||
goodTube_csp = window.trustedTypes.createPolicy("GoodTubePolicy", {
|
||||
createHTML: (input) => DOMPurify.sanitize(input, { RETURN_TRUSTED_TYPE: false })
|
||||
createHTML: (input) => DOMPurify.sanitize(input, { RETURN_TRUSTED_TYPE: true })
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
2
goodtube.min.js
vendored
2
goodtube.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user