mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
more tab cleanup
This commit is contained in:
parent
b399fbba22
commit
cd5f71265a
@ -8,7 +8,6 @@ import { generatePlaceholderText, getCaretPosition } from '../../utils/chat.js';
|
|||||||
import { getLocalStorage, setLocalStorage } from '../../utils/helpers.js';
|
import { getLocalStorage, setLocalStorage } from '../../utils/helpers.js';
|
||||||
import { URL_CUSTOM_EMOJIS, KEY_CHAT_FIRST_MESSAGE_SENT } from '../../utils/constants.js';
|
import { URL_CUSTOM_EMOJIS, KEY_CHAT_FIRST_MESSAGE_SENT } from '../../utils/constants.js';
|
||||||
|
|
||||||
|
|
||||||
export default class ChatInput extends Component {
|
export default class ChatInput extends Component {
|
||||||
constructor(props, context) {
|
constructor(props, context) {
|
||||||
super(props, context);
|
super(props, context);
|
||||||
@ -62,7 +61,6 @@ export default class ChatInput extends Component {
|
|||||||
initialCategory: 'custom',
|
initialCategory: 'custom',
|
||||||
showPreview: false,
|
showPreview: false,
|
||||||
emojiSize: '30px',
|
emojiSize: '30px',
|
||||||
// emojisPerRow: 6,
|
|
||||||
position: 'right-start',
|
position: 'right-start',
|
||||||
strategy: 'absolute',
|
strategy: 'absolute',
|
||||||
});
|
});
|
||||||
@ -146,7 +144,6 @@ export default class ChatInput extends Component {
|
|||||||
'Delete',
|
'Delete',
|
||||||
'Backspace',
|
'Backspace',
|
||||||
];
|
];
|
||||||
// const okCodes = [37,38,39,40,16,91,18,46,8];//left, up , right , down , shift, left window key, alt, delete, backspace
|
|
||||||
const formField = this.formMessageInput.current;
|
const formField = this.formMessageInput.current;
|
||||||
|
|
||||||
let textValue = formField.innerText.trim(); // get this only to count chars
|
let textValue = formField.innerText.trim(); // get this only to count chars
|
||||||
@ -291,4 +288,4 @@ export default class ChatInput extends Component {
|
|||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user