mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-11 22:51:35 +08:00
showing sign out button if the first page that is loading is account
This commit is contained in:
parent
a024142d57
commit
d9b766a620
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import * as VerificationController from "./verification-controller";
|
|||
import * as Settings from "./settings";
|
||||
import * as RouteController from "./route-controller";
|
||||
import * as UI from "./ui";
|
||||
import * as SignOutButton from "./sign-out-button";
|
||||
|
||||
ManualRestart.set();
|
||||
Misc.migrateFromCookies();
|
||||
|
|
@ -30,6 +31,9 @@ $(document).ready(() => {
|
|||
.removeClass("hidden")
|
||||
.stop(true, true)
|
||||
.animate({ opacity: 1 }, 250, () => {
|
||||
if (window.location.pathname === "/account") {
|
||||
SignOutButton.show();
|
||||
}
|
||||
if (window.location.pathname === "/verify") {
|
||||
const fragment = new URLSearchParams(window.location.hash.slice(1));
|
||||
if (fragment.has("access_token")) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue