mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-24 14:56:23 +08:00
parent
58ac17fa1e
commit
2878fb03e0
2 changed files with 11 additions and 12 deletions
|
|
@ -552,3 +552,14 @@ $(".pageLogin .register .button").click((e) => {
|
|||
if ($(".pageLogin .register .button").hasClass("disabled")) return;
|
||||
signUp();
|
||||
});
|
||||
|
||||
$(".pageSettings #addGoogleAuth").on("click", async (e) => {
|
||||
await addGoogleAuth();
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
$(".pageSettings #removeGoogleAuth").on("click", (e) => {
|
||||
removeGoogleAuth();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ import * as PresetController from "../controllers/preset-controller";
|
|||
import * as ThemePicker from "../settings/theme-picker";
|
||||
import * as ImportExportSettingsPopup from "../popups/import-export-settings-popup";
|
||||
import * as CustomThemePopup from "../popups/custom-theme-popup";
|
||||
import * as AccountController from "../controllers/account-controller";
|
||||
import Page from "./page";
|
||||
|
||||
export let groups = {};
|
||||
|
|
@ -862,17 +861,6 @@ $(".pageSettings .sectionGroupTitle").click((e) => {
|
|||
toggleSettingsGroup($(e.currentTarget).attr("group"));
|
||||
});
|
||||
|
||||
$(".pageSettings #addGoogleAuth").on("click", async (e) => {
|
||||
await AccountController.addGoogleAuth();
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
$(".pageSettings #removeGoogleAuth").on("click", (e) => {
|
||||
AccountController.removeGoogleAuth();
|
||||
});
|
||||
|
||||
$(".pageSettings .section.customBackgroundSize .inputAndButton .save").on(
|
||||
"click",
|
||||
(e) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue