File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
main/modals/PreferencesModal Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -642,8 +642,10 @@ export default class CodeEditor extends React.Component {
642
642
try {
643
643
Jsonlint . parse ( customMarkdownLintConfig )
644
644
lintConfigJson = JSON . parse ( customMarkdownLintConfig )
645
+ console . log ( customMarkdownLintConfig , lintConfigJson )
645
646
} catch ( err ) {
646
- throw err
647
+ eventEmitter . emit ( 'APP_SETTING_ERROR' )
648
+ return
647
649
}
648
650
const lintOptions = {
649
651
'strings' : {
Original file line number Diff line number Diff line change @@ -194,7 +194,6 @@ class MarkdownEditor extends React.Component {
194
194
}
195
195
196
196
reload ( ) {
197
- console . log ( 'reloading editor...' )
198
197
this . refs . code . reload ( )
199
198
this . cancelQueue ( )
200
199
this . renderPreview ( this . props . value )
@@ -278,7 +277,7 @@ class MarkdownEditor extends React.Component {
278
277
if ( this . props . ignorePreviewPointerEvents ) previewStyle . pointerEvents = 'none'
279
278
280
279
const storage = findStorage ( storageKey )
281
- console . log ( 'render editor' , config )
280
+
282
281
return (
283
282
< div className = { className == null
284
283
? 'MarkdownEditor'
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ class UiTab extends React.Component {
40
40
} } )
41
41
}
42
42
this . handleSettingError = ( err ) => {
43
+ console . log ( 'handle err' , err )
43
44
this . setState ( { UiAlert : {
44
45
type : 'error' ,
45
46
message : err . message != null ? err . message : i18n . __ ( 'An error occurred!' )
You can’t perform that action at this time.
0 commit comments