mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-04-03 05:31:14 +02: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;
|
const callbackOriginal = callback;
|
||||||
callback = async function (prompt, base64Image) {
|
callback = async function (prompt, base64Image) {
|
||||||
const imagePath = base64Image;
|
const imagePath = base64Image;
|
||||||
const imgUrl = `url(${base64Image})`;
|
const imgUrl = `url('${encodeURIComponent(base64Image)}')`;
|
||||||
|
|
||||||
if ('forceSetBackground' in window) {
|
if ('forceSetBackground' in window) {
|
||||||
forceSetBackground(imgUrl);
|
forceSetBackground(imgUrl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user