From 8b4f1a8973abe0a395cacf9617aab80bb606bf61 Mon Sep 17 00:00:00 2001 From: enes Date: Mon, 16 Sep 2024 11:00:16 +0200 Subject: [PATCH] fix(online-detection): use relative url --- src/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 7691fc7..11053b9 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -35,7 +35,7 @@ export const isOnline = async () => { try { // Define a URL to check the online status - const url = 'https://sigit.io' + const url = document.location.pathname + '?v=' + new Date().getTime() // Make a HEAD request to the URL with 'no-cors' mode // This mode is used to handle opaque responses which do not expose their content