1
mirror of https://github.com/cocktailpeanut/dalai synced 2024-11-20 23:07:32 +01:00
This commit is contained in:
cocktailpeanut 2023-03-22 13:03:24 -04:00
parent d56cb9e190
commit 446dffa2fc

View File

@ -181,6 +181,9 @@
color: white;
background: rgba(0,0,0,0.7);
}
#prompt-cancel i {
padding: 5px;
}
</style>
</head>
@ -210,7 +213,6 @@
<script>
const str = localStorage.getItem("config")
let config
console.log("str", str)
if (str) {
try {
config = JSON.parse(str)
@ -353,7 +355,6 @@ ${fields}
fetch('./prompts')
.then(response => response.json())
.then(prompts => {
console.log(prompts)
if (prompts.length === 0) {
promptSelect.disabled = true;
return;
@ -409,7 +410,6 @@ ${fields}
response
}) => {
loading(false)
console.log(response)
if (request.method === "installed") {
if (response == "\n\n<end>") {
document.querySelector(".form-header").innerHTML = renderHeader(config)