Skip to content

Commit 21c6112

Browse files
Fixing code style probllems
1 parent e77db37 commit 21c6112

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

browser/components/CodeEditor.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ export default class CodeEditor extends React.Component {
623623
if (prevProps.spellCheck !== this.props.spellCheck) {
624624
if (this.props.spellCheck === false) {
625625
spellcheck.setLanguage(this.editor, spellcheck.SPELLCHECK_DISABLED)
626-
let elem = document.getElementById('editor-bottom-panel')
626+
const elem = document.getElementById('editor-bottom-panel')
627627
elem.parentNode.removeChild(elem)
628628
} else {
629629
this.editor.addPanel(this.createSpellCheckPanel(), {position: 'bottom'})
@@ -703,10 +703,9 @@ export default class CodeEditor extends React.Component {
703703
this.editor.replaceSelection(imageMd)
704704
}
705705

706-
707706
handlePaste (editor, forceSmartPaste) {
708707
const { storageKey, noteKey, fetchUrlTitle, enableSmartPaste } = this.props
709-
708+
710709
const isURL = str => {
711710
const matcher = /^(?:\w+:)?\/\/([^\s\.]+\.\S{2}|localhost[\:?\d]*)\S*$/
712711
return matcher.test(str)

browser/main/modals/PreferencesModal/UiTab.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ class UiTab extends React.Component {
100100
matchingTriples: this.refs.matchingTriples.value,
101101
explodingPairs: this.refs.explodingPairs.value,
102102
spellcheck: this.refs.spellcheck.checked,
103-
spellcheck: this.refs.spellcheck.checked,
104103
enableSmartPaste: this.refs.enableSmartPaste.checked
105104
},
106105
preview: {

0 commit comments

Comments
 (0)