mirror of
https://github.com/multipleof4/sune.git
synced 2026-01-14 08:38:00 +00:00
Delete src/core/state.js
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
import{el}from'../lib/dom.js';
|
||||
export const state=window.state={messages:[],busy:false,controller:null,currentThreadId:null,abortRequested:false,attachments:[],stream:{rid:null,bubble:null,meta:null,text:'',done:false}}
|
||||
export function clearChat(){el.suneHtml.dispatchEvent(new CustomEvent('sune:unmount'));state.messages=[];el.messages.innerHTML='';state.attachments=[];el.fileInput.value=''}
|
||||
Reference in New Issue
Block a user