mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Rename character as a group member.
Unify CSRF headers usage in fetch request.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { callPopup, saveSettings, saveSettingsDebounced, token } from "../script.js";
|
||||
import { callPopup, saveSettings, saveSettingsDebounced } from "../script.js";
|
||||
import { isSubsetOf } from "./utils.js";
|
||||
export {
|
||||
getContext,
|
||||
@ -37,7 +37,7 @@ let connectedToApi = false;
|
||||
|
||||
async function discoverExtensions() {
|
||||
try {
|
||||
const response = await fetch('/discover_extensions', { headers: { 'X-CSRF-Token': token } });
|
||||
const response = await fetch('/discover_extensions');
|
||||
|
||||
if (response.ok) {
|
||||
const extensions = await response.json();
|
||||
|
Reference in New Issue
Block a user