1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-30 19:22:11 +00:00

chore(js): format JavaScript code with Prettier

This commit is contained in:
Frédéric Guillot 2025-08-01 18:34:05 -07:00
parent cce0e7bd29
commit f0575d64bc
10 changed files with 162 additions and 128 deletions

View file

@ -2,14 +2,14 @@ let ttpolicy;
if (window.trustedTypes && trustedTypes.createPolicy) {
//TODO: use an allow-list for `createScriptURL`
if (!ttpolicy) {
ttpolicy = trustedTypes.createPolicy('ttpolicy', {
createScriptURL: src => src,
createHTML: html => html,
ttpolicy = trustedTypes.createPolicy("ttpolicy", {
createScriptURL: (src) => src,
createHTML: (html) => html,
});
}
} else {
ttpolicy = {
createScriptURL: src => src,
createHTML: html => html,
createScriptURL: (src) => src,
createHTML: (html) => html,
};
}