fix: changing page_size was not effective on browsers with previous sessions
Massimo Melina committed
Mar 16, 2026 at 10:35 UTC
a5fefff248f59c401ce094580e5aed396ac45a0d
1 file changed
+1
-1
frontend/src/state.ts
+1
-1
@@ -63,7 +63,7 @@ export function useSnapState() {
63
64
const SETTINGS_KEY = 'hfs_settings'
65
type StateKey = keyof typeof state
66
-const SETTINGS_WITHOUT_GUI: StateKey[] = ['file_menu_on_link']
66
+const SETTINGS_WITHOUT_GUI: StateKey[] = ['file_menu_on_link', 'page_size', 'title_with_path']
67
const SETTINGS_TO_STORE: StateKey[] = _.difference(typedKeys(FRONTEND_OPTIONS), SETTINGS_WITHOUT_GUI)
68
.concat(['uploadOnExisting']) // not adding this to FRONTEND_OPTIONS, as its possible values vary with the user permissions, but still makes sense to save on a single browser, supposedly for a single user
69