chat: Move chat-specific option processing to chat.js

This commit is contained in:
Richard Hansen 2021-12-04 19:30:31 -05:00
parent 1cbba4ea3a
commit a1388b7876
2 changed files with 12 additions and 24 deletions

View file

@ -70,16 +70,6 @@ const getParameters = [
$('#editbar').css('display', 'flex');
},
},
{
name: 'showChat',
checkVal: null,
callback: (val) => {
if (val === 'false') {
settings.hideChat = true;
chat.hide();
}
},
},
{
name: 'showLineNumbers',
checkVal: 'false',
@ -117,20 +107,6 @@ const getParameters = [
settings.rtlIsTrue = true;
},
},
{
name: 'alwaysShowChat',
checkVal: 'true',
callback: (val) => {
if (!settings.hideChat) chat.stickToScreen();
},
},
{
name: 'chatAndUsers',
checkVal: 'true',
callback: (val) => {
chat.chatAndUsers();
},
},
{
name: 'lang',
checkVal: null,