Unable to connect to unixcorn.xyz #12 fixed
This commit is contained in:
parent
b2017bacb4
commit
05877e4bd4
1 changed files with 5 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue