Skip to content

Commit db5e780

Browse files
committed
Added defaultVal instruction to settings.controls comments ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js-chrome-starter]
1 parent c89467a commit db5e780

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

starters/chrome/extension/lib/settings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ window.settings = {
66
// Add settings options as keys, with each key's value being an object that includes:
77
// - 'type': the control type (e.g. 'toggle' or 'prompt')
88
// - 'label': a descriptive label
9+
// - 'defaultVal' (optional): default value of setting (true for toggles if unspecified, false otherwise)
910
// - 'symbol' (optional): for icon display (e.g. ⌚)
1011
// NOTE: Toggles are disabled by default unless key name contains 'disabled' or 'hidden' (case insensitive)
1112
// NOTE: Controls are displayed in top-to-bottom order

0 commit comments

Comments
 (0)