File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages-exp/auth-exp/src/platform_browser Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,12 @@ function getScriptParentElement(): HTMLDocument | HTMLHeadElement {
25
25
export function _loadJS ( url : string ) : Promise < Event > {
26
26
// TODO: consider adding timeout support & cancellation
27
27
return new Promise ( ( resolve , reject ) => {
28
- function onError ( e : Event | string ) : void {
28
+ function onError ( e : Event | string ) : void {
29
29
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 ) ;
31
34
reject ( error ) ;
32
35
}
33
36
const el = document . createElement ( 'script' ) ;
You can’t perform that action at this time.
0 commit comments