Skip to content

Commit b165267

Browse files
committed
chore: cahnge favicon as primary internet endpoint
1 parent 631802d commit b165267

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/common/hooks/useOnline/useOnline.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,18 @@ export const useOnline = ({ onOnline = noop }: { onOnline?: () => void }) => {
4040
abortControllerRef.current = controller
4141

4242
try {
43-
await getInternetConnectivity({ controller: abortControllerRef.current, setTimeoutRef, checkConnectivity })
43+
await getFallbackInternetConnectivity({
44+
controller: abortControllerRef.current,
45+
setTimeoutRef,
46+
checkConnectivity,
47+
})
4448
onConnectivitySuccess()
4549
} catch (error) {
4650
if (getIsRequestAborted(error)) return
4751
const fallbackController = new AbortController()
4852
abortControllerRef.current = fallbackController
4953
try {
50-
await getFallbackInternetConnectivity({
54+
await getInternetConnectivity({
5155
controller: abortControllerRef.current,
5256
setTimeoutRef,
5357
checkConnectivity,

0 commit comments

Comments
 (0)