Commit eead5bed authored by Haelwenn's avatar Haelwenn

harbour-kyclos.qml: Fix TypeError on initialisation

Closes: #22
parent 9e4d7097
Pipeline #22578 passed with stage
in 1 minute and 18 seconds
......@@ -53,15 +53,17 @@ ApplicationWindow {
"instance": Logic.conf['instance'],
"api_user_token": ""
})
}
Logic.api.get('instance', [], function (data) {
if(data.max_toot_chars && data.max_toot_chars > 499) {
Logic.conf['max_toot_chars'] = data.max_toot_chars;
} else {
Logic.conf['max_toot_chars'] = 5000;
}
})
Logic.api.get('instance', [], function (data) {
if(data.max_toot_chars && data.max_toot_chars > 499) {
Logic.conf['max_toot_chars'] = data.max_toot_chars;
} else {
Logic.conf['max_toot_chars'] = 5000;
}
})
} else {
Logic.conf['max_toot_chars'] = 5000;
}
if (Logic.conf['login']) {
//Logic.conf['notificationLastID'] = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment