Skip to content

Commit 1357a22

Browse files
committed
Run formatting
1 parent 7f2f930 commit 1357a22

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/auth/src/platform_browser/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ _setExternalJSProvider({
126126
const el = document.createElement('script');
127127
// FIXME: Do not use setAttribute, since it can lead to XSS. Instead, use the safevalues library to
128128
// safely set an attribute for a sanitized trustedResourceUrl. Since the trustedResourceUrl
129-
// must be initialized from a template string literal, this could involve some heavy
129+
// must be initialized from a template string literal, this could involve some heavy
130130
// refactoring.
131131
el.setAttribute('src', url);
132132
el.onload = resolve;

packages/auth/src/platform_browser/load_js.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('platform-browser/load_js', () => {
4444
loadJS(url: string): Promise<Event> {
4545
return new Promise((resolve, reject) => {
4646
const el = document.createElement('script');
47-
// FIXME: Do not use setAttribute, as this can lead to XSS. Instead, use the safevalues
47+
// FIXME: Do not use setAttribute, as this can lead to XSS. Instead, use the safevalues
4848
// library, or get an exception for tests.
4949
el.setAttribute('src', url);
5050
el.onload = resolve;
@@ -67,7 +67,7 @@ describe('platform-browser/load_js', () => {
6767

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

0 commit comments

Comments
 (0)