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:
parent
cce0e7bd29
commit
f0575d64bc
10 changed files with 162 additions and 128 deletions
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue