Skip to content

Commit 8c2f1cd

Browse files
committed
Update config.js
1 parent 1b8536d commit 8c2f1cd

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

config.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ SERVER_URL = 'https://minesweeper-leaderboard.tuggi.dev';
22
// SERVER_URL = 'http://localhost:3001';
33
LOCAL_STORAGE_USERNAME_KEY = "ms_lb_username";
44
LOCAL_STORAGE_COLLAPSE_KEY = "ms_lb_collapsed";
5-
LOCAL_STORAGE_SHORTCUTS_KEY = "ms_shortcuts_enabled";
5+
LOCAL_STORAGE_SHORTCUTS_REVEAL_KEY = "ms_shortcuts_reveal_enabled";
6+
LOCAL_STORAGE_SHORTCUTS_FLAG_KEY = "ms_shortcuts_flag_enabled";
67
LOCAL_STORAGE_COLOR_KEY = "ms_color_enabled";
78
LOCAL_STORAGE_MARKS_KEY = "ms_marks_enabled";
89

@@ -64,16 +65,28 @@ const preferences = [
6465
value: false,
6566
},
6667
{
67-
name: "shortcuts",
68+
name: "shortcuts_reveal",
6869
onChange: (state) => {
69-
handleRadioUpdate("shortcuts", state);
70+
handleRadioUpdate("shortcuts_reveal", state);
7071
},
7172
onLsLoad: (value) => {
7273
return value === "true";
7374
},
74-
lsKey: LOCAL_STORAGE_SHORTCUTS_KEY,
75+
lsKey: LOCAL_STORAGE_SHORTCUTS_REVEAL_KEY,
7576
value: false,
7677
},
78+
{
79+
name: "shortcuts_flag",
80+
onChange: (state) => {
81+
handleRadioUpdate("shortcuts_flag", state);
82+
},
83+
onLsLoad: (value) => {
84+
return value === "true";
85+
},
86+
lsKey: LOCAL_STORAGE_SHORTCUTS_FLAG_KEY,
87+
value: false,
88+
},
89+
7790
{
7891
name: "marks",
7992
onChange: (state) => {

0 commit comments

Comments
 (0)