Unable to connect to unixcorn.xyz #12 fixed

This commit is contained in:
Dusko Angirevic 2017-07-04 01:26:49 +02:00
parent b2017bacb4
commit 05877e4bd4

View file

@ -137,9 +137,12 @@ Page {
opacity: 0 opacity: 0
onLoadingChanged: { onLoadingChanged: {
console.log(url) 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; visible = false;
var authCode = (url+"").substr(37) var authCode = (url+"").substr(-64)
console.log(authCode) console.log(authCode)
Logic.api.getAccessTokenFromAuthCode( Logic.api.getAccessTokenFromAuthCode(