mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 15:56:24 +08:00
Merge branch 'master' of https://github.com/Miodec/monkey-type
This commit is contained in:
commit
2160285e1e
|
@ -34,7 +34,18 @@ export async function getDataAndInit() {
|
|||
await DB.initSnapshot();
|
||||
} catch (e) {
|
||||
AccountButton.loading(false);
|
||||
|
||||
if (e.response.status === 429) {
|
||||
Notifications.add(
|
||||
"Doing so will save you bandwidth, make the next test be ready faster and will not sign you out (which could mean your new personal best would not save to your account).",
|
||||
0,
|
||||
0
|
||||
);
|
||||
Notifications.add(
|
||||
"You will run into this error if you refresh the website to restart the test. It is NOT recommended to do that. Instead, use tab + enter or just tab (with quick tab mode enalbed) to restart the test.",
|
||||
0,
|
||||
0
|
||||
);
|
||||
}
|
||||
let msg = e?.response?.data?.message ?? e.message;
|
||||
Notifications.add("Failed to get user data: " + msg, -1);
|
||||
|
||||
|
|
|
@ -627,19 +627,9 @@ function handleAlpha(event) {
|
|||
thisCharCorrect = true;
|
||||
}
|
||||
|
||||
if (event.key === "’" && nextCharInWord == "'") {
|
||||
event.key = "'";
|
||||
thisCharCorrect = true;
|
||||
}
|
||||
|
||||
if (event.key === "'" && nextCharInWord == "’") {
|
||||
event.key = "’";
|
||||
thisCharCorrect = true;
|
||||
}
|
||||
|
||||
if (
|
||||
(event.key === `’` || event.key === "'") &&
|
||||
(nextCharInWord == `’` || nextCharInWord === "'")
|
||||
(event.key === `’` || event.key === `‘` || event.key === "'") &&
|
||||
(nextCharInWord == `’` || nextCharInWord === `‘` || nextCharInWord === "'")
|
||||
) {
|
||||
event.key = nextCharInWord;
|
||||
thisCharCorrect = true;
|
||||
|
|
|
@ -1293,7 +1293,7 @@
|
|||
<i class="fas fa-mouse-pointer"></i>
|
||||
Click or press any key to focus
|
||||
</div>
|
||||
<div id="wordsWrapper">
|
||||
<div id="wordsWrapper" translate="no">
|
||||
<div id="paceCaret" class="default size15 hidden"></div>
|
||||
<div id="caret" class="default size15"></div>
|
||||
<div id="words" class="size15"></div>
|
||||
|
|
Loading…
Reference in a new issue