allowing for grammar signin

This commit is contained in:
lingdocs 2021-09-18 20:07:50 -04:00
parent 15e4ef730a
commit 4380af0a98
3 changed files with 9 additions and 4 deletions

View File

@ -167,6 +167,11 @@
} catch (e) {
console.error(e);
}
try {
w.postMessage("signed in", "https://grammar.lingdocs.com");
} catch (e) {
console.error(e);
}
}
function handleRequestUpgrade() {
console.log("got here");

View File

@ -412,7 +412,7 @@ class App extends Component<RouteComponentProps, State> {
}
}
private checkUserCronJob = new CronJob("1/20 * * * * *", () => {
private checkUserCronJob = new CronJob("1/45 * * * * *", () => {
this.handleLoadUser();
})

View File

@ -163,9 +163,9 @@ const Account = ({ user, loadUser }: { user: AT.LingdocsUser | undefined, loadUs
<i className="fas fa-key ml-2"></i> <span className="small mr-1">Password</span>
</span>}
{providers.map((provider) => (
user[provider] && <span>
<i className={`fab fa-${provider} mx-1`}></i>
</span>
<span key={provider}>
{user[provider] && <i className={`fab fa-${provider} mx-1`}></i>}
</span>
))}
</li>
</ul>