File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/components/common/hooks/useOnline Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,18 @@ export const useOnline = ({ onOnline = noop }: { onOnline?: () => void }) => {
40
40
abortControllerRef . current = controller
41
41
42
42
try {
43
- await getInternetConnectivity ( { controller : abortControllerRef . current , setTimeoutRef, checkConnectivity } )
43
+ await getFallbackInternetConnectivity ( {
44
+ controller : abortControllerRef . current ,
45
+ setTimeoutRef,
46
+ checkConnectivity,
47
+ } )
44
48
onConnectivitySuccess ( )
45
49
} catch ( error ) {
46
50
if ( getIsRequestAborted ( error ) ) return
47
51
const fallbackController = new AbortController ( )
48
52
abortControllerRef . current = fallbackController
49
53
try {
50
- await getFallbackInternetConnectivity ( {
54
+ await getInternetConnectivity ( {
51
55
controller : abortControllerRef . current ,
52
56
setTimeoutRef,
53
57
checkConnectivity,
You can’t perform that action at this time.
0 commit comments