New release #210
@ -35,7 +35,7 @@ export const isOnline = async () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Define a URL to check the online status
|
// 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
|
// 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
|
// This mode is used to handle opaque responses which do not expose their content
|
||||||
|
Loading…
Reference in New Issue
Block a user