From adf30321f8000f69afec8c0a630ea7dbc141d809 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 22 Aug 2019 13:06:07 +0200 Subject: [PATCH] MOBILE-3068 login: Fix check WS enabled in 3.1 with local_mobile --- src/providers/sites.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/providers/sites.ts b/src/providers/sites.ts index 9588a3e60..d97901828 100644 --- a/src/providers/sites.ts +++ b/src/providers/sites.ts @@ -492,6 +492,9 @@ export class CoreSitesProvider { } return data; + }, (error) => { + // Local mobile check returned an error. This only happens if the plugin is installed and it returns an error. + return rejectWithCriticalError(error); }).then((data) => { siteUrl = temporarySite.getURL();