Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 15fc572

Browse files
committed
add boolean to option map: unsure about this one. Change suggested by LLM after removing the quotes from auth.ts share value
1 parent 38016f7 commit 15fc572

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/options_init.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface DefaultOption {
3030
*
3131
* If a function is passed Gin instead, the function is called if the option does not exist (with access to the current options) and the return value is used instead. Useful to migrate a new option with a value depending on some other option that might be initialized.
3232
*/
33-
value: string | ((options: OptionMap) => string);
33+
value: string | boolean | ((options: OptionMap) => string | boolean);
3434
isSynced: boolean;
3535
}
3636

@@ -122,7 +122,7 @@ const defaultOptions: DefaultOption[] = [
122122
{ name: "highlightsList", value: '["bold","italic","underline","color","bgColor"]', isSynced: true },
123123
{ name: "checkForUpdates", value: "true", isSynced: true },
124124
{ name: "disableTray", value: "false", isSynced: false },
125-
{ name: "eraseUnusedAttachmentsAfterSeconds", value: "2592000", isSynced: true }, // default 30 days
125+
{ name: "eraseUnusedAttachmentsAfterSeconds", value: "2592000", isSynced: true }, // default 30 days
126126
{ name: "eraseUnusedAttachmentsAfterTimeScale", value: "86400", isSynced: true }, // default 86400 seconds = Day
127127
{ name: "customSearchEngineName", value: "DuckDuckGo", isSynced: true },
128128
{ name: "customSearchEngineUrl", value: "https://duckduckgo.com/?q={keyword}", isSynced: true },
@@ -256,8 +256,8 @@ const defaultOptions: DefaultOption[] = [
256256
},
257257

258258
// Share settings
259-
{ name: "redirectBareDomain", value: "false", isSynced: true },
260-
{ name: "showLoginInShareTheme", value: "false", isSynced: true }
259+
{ name: "redirectBareDomain", value: false, isSynced: true },
260+
{ name: "showLoginInShareTheme", value: false, isSynced: true }
261261
];
262262

263263
/**

0 commit comments

Comments
 (0)