Fix linting.
parent
36fab8dadf
commit
37970761a9
|
@ -18,9 +18,13 @@ const TelegramConfig = React.createClass({
|
|||
handleSaveAlert(e) {
|
||||
e.preventDefault();
|
||||
|
||||
let parseMode
|
||||
if (this.parseModeHTML.checked) parseMode = 'HTML'
|
||||
if (this.parseModeMarkdown.checked) parseMode = 'Markdown'
|
||||
let parseMode;
|
||||
if (this.parseModeHTML.checked) {
|
||||
parseMode = 'HTML';
|
||||
}
|
||||
if (this.parseModeMarkdown.checked) {
|
||||
parseMode = 'Markdown';
|
||||
}
|
||||
|
||||
const properties = {
|
||||
'chat-id': this.chatID.value,
|
||||
|
|
Loading…
Reference in New Issue