Skip to content

Commit

Permalink
DO NOT MERGE - allow eval / innerHTML in NTP temporarily
Browse files Browse the repository at this point in the history
Need to fork `react-virtualized-auto-sizer` and use DOM API instead of set innerHTML
  • Loading branch information
petemill committed Oct 29, 2020
1 parent dc218e3 commit 928b901
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/common/defaultTrustedTypesPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ window.trustedTypes.createPolicy('default', {
throw new Error(`Asked for a script url that has a disallowed origin of ${parsed.origin}. URL was: ${url}.`)
}
return url
}
},
createHTML: (htmlString: string) => htmlString
});

0 comments on commit 928b901

Please sign in to comment.