From d9b766a6201ff2f1581aab024b4c26ca183eeaf0 Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 2 May 2021 15:10:39 +0100 Subject: [PATCH] showing sign out button if the first page that is loading is account --- src/js/ready.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/ready.js b/src/js/ready.js index bbad0d91b..26421f6d7 100644 --- a/src/js/ready.js +++ b/src/js/ready.js @@ -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")) {