File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ SERVER_URL = 'https://minesweeper-leaderboard.tuggi.dev';
22// SERVER_URL = 'http://localhost:3001';
33LOCAL_STORAGE_USERNAME_KEY = "ms_lb_username" ;
44LOCAL_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" ;
67LOCAL_STORAGE_COLOR_KEY = "ms_color_enabled" ;
78LOCAL_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 ) => {
You can’t perform that action at this time.
0 commit comments