unvendor: Replace localforage

This commit is contained in:
Cohee
2024-10-16 23:37:54 +03:00
parent 416282ae1f
commit 1c4e87b25b
9 changed files with 37 additions and 6 deletions

View File

@ -2,6 +2,7 @@ import {
Fuse,
DOMPurify,
hljs,
localforage,
initLibraryShims,
default as libs,
} from './lib.js';
@ -503,7 +504,7 @@ reloadMarkdownProcessor();
// array for prompt token calculations
console.debug('initializing Prompt Itemization Array on Startup');
const promptStorage = new localforage.createInstance({ name: 'SillyTavern_Prompts' });
const promptStorage = localforage.createInstance({ name: 'SillyTavern_Prompts' });
export let itemizedPrompts = [];
export const systemUserName = 'SillyTavern System';