From 378a40f6950b3c0a8ee35a0080b6d879c6247b7e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 27 Mar 2024 10:07:59 +0000 Subject: [PATCH] fix: opt in to `import.meta.*` properties --- packages/nc-gui/composables/useLoadingIndicator/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/composables/useLoadingIndicator/index.ts b/packages/nc-gui/composables/useLoadingIndicator/index.ts index 4455349df5..7f35540228 100644 --- a/packages/nc-gui/composables/useLoadingIndicator/index.ts +++ b/packages/nc-gui/composables/useLoadingIndicator/index.ts @@ -18,7 +18,7 @@ export function useLoadingIndicator({ duration = 2000, throttle = 200 }: UseLoad progress.value = 0 isLoading.value = true if (throttle) { - if (process.client) { + if (import.meta.client) { _throttle = setTimeout(_startTimer, throttle) } } else { @@ -44,7 +44,7 @@ export function useLoadingIndicator({ duration = 2000, throttle = 200 }: UseLoad function _hide() { clear() - if (process.client) { + if (import.meta.client) { setTimeout(() => { isLoading.value = false setTimeout(() => { @@ -55,7 +55,7 @@ export function useLoadingIndicator({ duration = 2000, throttle = 200 }: UseLoad } function _startTimer() { - if (process.client) { + if (import.meta.client) { _timer = setInterval(() => { _increase(step.value) }, 100)