Skip to content

Commit f58a5d1

Browse files
committed
Formatting
1 parent 9038aa9 commit f58a5d1

File tree

1 file changed

+5
-2
lines changed
  • packages-exp/auth-exp/src/platform_browser

1 file changed

+5
-2
lines changed

packages-exp/auth-exp/src/platform_browser/load_js.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ function getScriptParentElement(): HTMLDocument | HTMLHeadElement {
2525
export function _loadJS(url: string): Promise<Event> {
2626
// TODO: consider adding timeout support & cancellation
2727
return new Promise((resolve, reject) => {
28-
function onError(e: Event|string): void {
28+
function onError(e: Event | string): void {
2929
const errorEvent = e as ErrorEvent;
30-
const error = typeof errorEvent !== 'string' && errorEvent.error ? errorEvent.error : _createError(AuthErrorCode.INTERNAL_ERROR);
30+
const error =
31+
typeof errorEvent !== 'string' && errorEvent.error
32+
? errorEvent.error
33+
: _createError(AuthErrorCode.INTERNAL_ERROR);
3134
reject(error);
3235
}
3336
const el = document.createElement('script');

0 commit comments

Comments
 (0)