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) { } catch (e) {
console.error(e); console.error(e);
} }
try {
w.postMessage("signed in", "https://grammar.lingdocs.com");
} catch (e) {
console.error(e);
}
} }
function handleRequestUpgrade() { function handleRequestUpgrade() {
console.log("got here"); 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(); this.handleLoadUser();
}) })

View File

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