mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 18:25:41 +03:00
Try disable version check
Some Mastodon instances have invalid semver 🤦♂️
E.g. social.treehouse.systems = v4.0.1+glitch+th
This commit is contained in:
parent
56cab34a9c
commit
a5177b3b70
2 changed files with 3 additions and 0 deletions
|
@ -143,6 +143,7 @@ export function App() {
|
||||||
window.masto = await login({
|
window.masto = await login({
|
||||||
url: `https://${instanceURL}`,
|
url: `https://${instanceURL}`,
|
||||||
accessToken,
|
accessToken,
|
||||||
|
disableVersionCheck: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const mastoAccount = await masto.accounts.verifyCredentials();
|
const mastoAccount = await masto.accounts.verifyCredentials();
|
||||||
|
@ -183,6 +184,7 @@ export function App() {
|
||||||
window.masto = await login({
|
window.masto = await login({
|
||||||
url: `https://${instanceURL}`,
|
url: `https://${instanceURL}`,
|
||||||
accessToken,
|
accessToken,
|
||||||
|
disableVersionCheck: true,
|
||||||
});
|
});
|
||||||
setIsLoggedIn(true);
|
setIsLoggedIn(true);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -27,6 +27,7 @@ if (window.opener) {
|
||||||
window.masto = await login({
|
window.masto = await login({
|
||||||
url: `https://${instanceURL}`,
|
url: `https://${instanceURL}`,
|
||||||
accessToken,
|
accessToken,
|
||||||
|
disableVersionCheck: true,
|
||||||
});
|
});
|
||||||
console.info('Logged in successfully.');
|
console.info('Logged in successfully.');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue