mirror of
https://github.com/neocities/neocities.git
synced 2025-06-28 15:13:26 +02:00
chat: supporter only for now
This commit is contained in:
parent
07d578ab57
commit
d57e33d951
3 changed files with 11 additions and 9 deletions
|
@ -51,12 +51,9 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
|
||||
var formData = new FormData();
|
||||
formData.append('csrf_token', chatForm.querySelector('input[name="csrf_token"]').value);
|
||||
|
||||
|
||||
// uncomment this out if disable next two lines
|
||||
//formData.append('system', system);
|
||||
|
||||
let systemWithFile = system + "\nThis is the user's current file they are editing:\n" + editor.getValue();
|
||||
|
||||
// let systemWithFile = system + "\nThis is the user's current file they are editing:\n" + editor.getValue();
|
||||
let systemWithFile = system
|
||||
formData.append('system', systemWithFile);
|
||||
|
||||
formData.append('messages', JSON.stringify(messages));
|
||||
|
@ -229,6 +226,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
let chatContainer = document.getElementsByClassName('chat-container')[0];
|
||||
|
||||
var chatEnabled = localStorage.getItem('chatEnabled');
|
||||
|
||||
if (chatEnabled === 'true') {
|
||||
leftCol.style.width = localStorage.getItem('leftColPct') || '70%';
|
||||
rightCol.style.width = localStorage.getItem('rightColPct') || '30%';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue