Skip to content

Commit

Permalink
Run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dlarocque committed Jul 11, 2024
1 parent 5d16cbf commit 6c7fd0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/auth/src/platform_browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ _setExternalJSProvider({
const el = document.createElement('script');
// FIXME: Do not use setAttribute, since it can lead to XSS. Instead, use the safevalues library to
// safely set an attribute for a sanitized trustedResourceUrl. Since the trustedResourceUrl
// must be initialized from a template string literal, this could involve some heavy
// must be initialized from a template string literal, this could involve some heavy
// refactoring.
el.setAttribute('src', url);
el.onload = resolve;
Expand Down
4 changes: 2 additions & 2 deletions packages/auth/src/platform_browser/load_js.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('platform-browser/load_js', () => {
loadJS(url: string): Promise<Event> {
return new Promise((resolve, reject) => {
const el = document.createElement('script');
// FIXME: Do not use setAttribute, as this can lead to XSS. Instead, use the safevalues
// FIXME: Do not use setAttribute, as this can lead to XSS. Instead, use the safevalues
// library, or get an exception for tests.
el.setAttribute('src', url);
el.onload = resolve;
Expand All @@ -67,7 +67,7 @@ describe('platform-browser/load_js', () => {

// eslint-disable-next-line @typescript-eslint/no-floating-promises
_loadJS('http://localhost/url');
// FIXME: Do not use setAttribute, as this can lead to XSS. Instead, use the safevalues
// FIXME: Do not use setAttribute, as this can lead to XSS. Instead, use the safevalues
// library, or get an exception for tests.
expect(el.setAttribute).to.have.been.calledWith(
'src',
Expand Down

0 comments on commit 6c7fd0e

Please sign in to comment.