Formatting cleanups for nested conditionals (#902)

* Formatting cleanups for nested conditionals

* Transports
This commit is contained in:
Jaco Greeff
2021-02-27 11:30:18 +01:00
committed by GitHub
parent 3143e9df1c
commit 843cb3d00a
11 changed files with 50 additions and 40 deletions
+9 -7
View File
@@ -1,10 +1,12 @@
// Copyright 2017-2021 @polkadot/x-fetch authors & contributors
// SPDX-License-Identifier: Apache-2.0
export const xglobal = typeof global !== 'undefined'
? global
: typeof self !== 'undefined'
? self
: typeof window !== 'undefined'
? window
: this as unknown as (Window & typeof globalThis);
export const xglobal = (
typeof global !== 'undefined'
? global
: typeof self !== 'undefined'
? self
: typeof window !== 'undefined'
? window
: this as unknown as (Window & typeof globalThis)
);