mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 08:14:11 +08:00
Disables pb caret when not signed in
Should satisfy ebe7f02593
and closes #1161
This commit is contained in:
parent
a6990cd369
commit
449dbd3b9d
1 changed files with 6 additions and 4 deletions
|
@ -477,10 +477,12 @@ export function setPaceCaret(val, nosave) {
|
|||
if (val == undefined) {
|
||||
val = "off";
|
||||
}
|
||||
// if (val == "pb" && firebase.auth().currentUser === null) {
|
||||
// Notifications.add("PB pace caret is unavailable without an account", 0);
|
||||
// return;
|
||||
// }
|
||||
if ( document.readyState === "complete") {
|
||||
if (val == "pb" && firebase.auth().currentUser === null) {
|
||||
Notifications.add("PB pace caret is unavailable without an account", 0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// if (config.mode === "zen" && val != "off") {
|
||||
// Notifications.add(`Can't use pace caret with zen mode.`, 0);
|
||||
// val = "off";
|
||||
|
|
Loading…
Reference in a new issue