Merge pull request #1514 from dpalou/MOBILE-2587
MOBILE-2587 login: Don't send fake credentials in desktop appsmain
commit
a6b6d28d40
|
@ -378,7 +378,7 @@ export class CoreSitesProvider {
|
|||
siteExists(siteUrl: string): Promise<void> {
|
||||
const data: any = {};
|
||||
|
||||
if (!this.appProvider.isMobile()) {
|
||||
if (!this.appProvider.isMobile() && !this.appProvider.isDesktop()) {
|
||||
// Send fake parameters for CORS. This is only needed in browser.
|
||||
data.username = 'a';
|
||||
data.password = 'b';
|
||||
|
|
Loading…
Reference in New Issue