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:
Lim Chee Aun 2022-12-15 16:54:14 +08:00
parent 56cab34a9c
commit a5177b3b70
2 changed files with 3 additions and 0 deletions

View file

@ -143,6 +143,7 @@ export function App() {
window.masto = await login({
url: `https://${instanceURL}`,
accessToken,
disableVersionCheck: true,
});
const mastoAccount = await masto.accounts.verifyCredentials();
@ -183,6 +184,7 @@ export function App() {
window.masto = await login({
url: `https://${instanceURL}`,
accessToken,
disableVersionCheck: true,
});
setIsLoggedIn(true);
} catch (e) {

View file

@ -27,6 +27,7 @@ if (window.opener) {
window.masto = await login({
url: `https://${instanceURL}`,
accessToken,
disableVersionCheck: true,
});
console.info('Logged in successfully.');
} catch (e) {