mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-10 14:10:59 +08:00
refactor
This commit is contained in:
parent
7a86dbe319
commit
27e5ea3cc5
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,6 @@ import * as AccountButton from "../elements/account-button";
|
|||
import * as DB from "../db";
|
||||
import * as Replay from "./replay.js";
|
||||
import axiosInstance from "../axios-instance";
|
||||
import * as MonkeyPower from "../elements/monkey-power";
|
||||
import * as Poetry from "./poetry.js";
|
||||
import * as Wikipedia from "./wikipedia.js";
|
||||
import * as TodayTracker from "./today-tracker";
|
||||
|
|
@ -38,6 +37,7 @@ import * as QuoteRatePopup from "../popups/quote-rate-popup";
|
|||
import * as BritishEnglish from "./british-english";
|
||||
import * as LazyMode from "./lazy-mode";
|
||||
import * as Result from "./result";
|
||||
import * as MonkeyPower from "./../elements/monkey-power";
|
||||
|
||||
const objecthash = require("node-object-hash")().hash;
|
||||
|
||||
|
|
@ -233,7 +233,6 @@ export let bailout = false;
|
|||
|
||||
export function setActive(tf) {
|
||||
active = tf;
|
||||
if (!tf) MonkeyPower.reset();
|
||||
}
|
||||
|
||||
export function setRepeated(tf) {
|
||||
|
|
@ -841,6 +840,7 @@ async function getNextWord(wordset, language, wordsBound) {
|
|||
|
||||
export async function init() {
|
||||
setActive(false);
|
||||
MonkeyPower.reset();
|
||||
Replay.stopReplayRecording();
|
||||
words.reset();
|
||||
TestUI.setCurrentWordElementIndex(0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue