Fix ACA pipeline

This commit is contained in:
DominikIwanek 2024-12-19 10:29:38 +01:00 committed by Vito Albano
parent f89d56acbf
commit 5a91b6b3c9

View File

@ -15,4 +15,5 @@
* limitations under the License. * limitations under the License.
*/ */
export const isBrowser = (): boolean => typeof window?.document !== 'undefined'; // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
export const isBrowser = (): boolean => typeof window !== 'undefined' && typeof window.document !== 'undefined';