mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-11 15:55:58 +00:00
fix: invalid network connection logic when Network API is not supported by the browser
Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
This commit is contained in:
parent
028b41ad01
commit
ef4ff9c5bb
@ -46,9 +46,9 @@ export const isFinePointer = useMediaQuery('(pointer:fine)');
|
||||
*/
|
||||
const network = useNetwork();
|
||||
export const isConnectedToServer = computedAsync(async () => {
|
||||
if ((network.isSupported.value && network.isOnline.value)) {
|
||||
if (network.isSupported.value && network.isOnline.value) {
|
||||
return true;
|
||||
} else if (!isNil(remote.auth.currentServer) && !remote.socket.isConnected.value) {
|
||||
} else if (!isNil(remote.auth.currentServer) || !remote.socket.isConnected.value) {
|
||||
try {
|
||||
await remote.sdk.newUserApi(getSystemApi).getPingSystem();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user