This commit is contained in:
goodtube4u
2024-08-08 10:24:14 +10:00
parent 7e192135bd
commit a951b9c901
3 changed files with 12 additions and 2 deletions

View File

@@ -2,6 +2,16 @@
'use strict';
// Bypass CSP restrictions, introduced by the latest Chrome updates
if (window.trustedTypes && window.trustedTypes.createPolicy && !window.trustedTypes.defaultPolicy) {
window.trustedTypes.createPolicy('default', {
createHTML: string => string,
createScriptURL: string => string,
createScript: string => string
});
}
/* General config
------------------------------------------------------------------------------------------ */
// Github location for loading assets

2
goodtube.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -19,7 +19,7 @@
'use strict';
// Bypass CSP restrictions, introduced by the latest Chrome updates
if (window.trustedTypes && window.trustedTypes.createPolicy && typeof window.trustedTypes.default === 'undefined') {
if (window.trustedTypes && window.trustedTypes.createPolicy && !window.trustedTypes.defaultPolicy) {
window.trustedTypes.createPolicy('default', {
createHTML: string => string,
createScriptURL: string => string,