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