Merge pull request #1223 from CrumblyLiquid/patch-5

Disables pb caret when not signed in
This commit is contained in:
Jack 2021-04-10 16:33:44 +01:00 committed by GitHub
commit 55b9220622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";