mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-11 01:44:50 +08:00
potential fix for the freedommode issue
This commit is contained in:
parent
a0c54a7769
commit
8565dd233b
1 changed files with 2 additions and 1 deletions
|
|
@ -45,6 +45,7 @@ let config = defaultConfig;
|
|||
//cookies
|
||||
function saveConfigToCookie() {
|
||||
// showNotification('saving to cookie',1000);
|
||||
if (config.freedomMode === null) config.freedomMode = false;
|
||||
let d = new Date();
|
||||
d.setFullYear(d.getFullYear() + 1);
|
||||
$.cookie("config", null);
|
||||
|
|
@ -424,7 +425,7 @@ function togglePunctuation() {
|
|||
|
||||
//freedom
|
||||
function setFreedomMode(freedom, nosave) {
|
||||
if (freedom === null) {
|
||||
if (freedom == null) {
|
||||
freedom = false;
|
||||
}
|
||||
config.freedomMode = freedom;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue