Skip to content

Commit 3f96587

Browse files
KazumiHARADARokt33r
authored andcommitted
[update] move default value of the customCSS field to ConfigManager
1 parent c012bbd commit 3f96587

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

browser/main/lib/ConfigManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const DEFAULT_CONFIG = {
8585
breaks: true,
8686
smartArrows: false,
8787
allowCustomCSS: false,
88-
customCSS: '',
88+
customCSS: '/* Drop Your Custom CSS Code Here */',
8989
sanitize: 'STRICT', // 'STRICT', 'ALLOW_STYLES', 'NONE'
9090
lineThroughCheckbox: true
9191
},

browser/main/modals/PreferencesModal/UiTab.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,6 @@ class UiTab extends React.Component {
883883
onChange={e => this.handleUIChange(e)}
884884
ref={e => (this.customCSSCM = e)}
885885
value={config.preview.customCSS}
886-
defaultValue={'/* Drop Your Custom CSS Code Here */\n'}
887886
options={{
888887
lineNumbers: true,
889888
mode: 'css',

0 commit comments

Comments
 (0)