mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 08:57:11 +01:00
Fix background SD gens
This commit is contained in:
parent
e8c996ff61
commit
692c1a5e60
@ -588,7 +588,7 @@ async function generatePicture(_, trigger, message, callback) {
|
||||
const callbackOriginal = callback;
|
||||
callback = async function (prompt, base64Image) {
|
||||
const imagePath = base64Image;
|
||||
const imgUrl = `url(${base64Image})`;
|
||||
const imgUrl = `url('${encodeURIComponent(base64Image)}')`;
|
||||
|
||||
if ('forceSetBackground' in window) {
|
||||
forceSetBackground(imgUrl);
|
||||
|
Loading…
Reference in New Issue
Block a user