From 05877e4bd416397ff3565d9b6e8bda98b8e8ca52 Mon Sep 17 00:00:00 2001 From: Dusko Angirevic Date: Tue, 4 Jul 2017 01:26:49 +0200 Subject: [PATCH] Unable to connect to unixcorn.xyz #12 fixed --- qml/pages/LoginPage.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qml/pages/LoginPage.qml b/qml/pages/LoginPage.qml index 700b74e..0c1bd14 100644 --- a/qml/pages/LoginPage.qml +++ b/qml/pages/LoginPage.qml @@ -137,9 +137,12 @@ Page { opacity: 0 onLoadingChanged: { console.log(url) - if ((url+"").substr(0, 37) === 'http://localhost/harbour-tooter?code=') { + if ( + (url+"").substr(0, 37) === 'http://localhost/harbour-tooter?code=' || + (url+"").substr(0, 38) === 'https://localhost/harbour-tooter?code=' + ) { visible = false; - var authCode = (url+"").substr(37) + var authCode = (url+"").substr(-64) console.log(authCode) Logic.api.getAccessTokenFromAuthCode(