SimpleChat:JS:Keep MultiChatUI simple for now
Worry about different chats with different servers for later.
This commit is contained in:
parent
5c1a9f4d8b
commit
fcf2af9504
1 changed files with 2 additions and 6 deletions
|
@ -218,24 +218,20 @@ let gChatURL = {
|
|||
}
|
||||
const gbCompletionFreshChatAlways = true;
|
||||
|
||||
class MultiChat {
|
||||
class MultiChatUI {
|
||||
|
||||
constructor() {
|
||||
/** @type {number} */
|
||||
this.iChat = -1;
|
||||
/** @type {SimpleChat[]} */
|
||||
this.simpleChats = [];
|
||||
/** @type {string[]} */
|
||||
this.baseURLs = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Start a new chat
|
||||
* @param {string} baseURL
|
||||
*/
|
||||
new_chat(baseURL) {
|
||||
new_chat() {
|
||||
this.simpleChats.push(new SimpleChat());
|
||||
this.baseURLs.push(baseURL);
|
||||
this.iChat = this.simpleChats.length - 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue