Fix background SD gens

This commit is contained in:
Cohee 2023-08-20 12:16:29 +03:00
parent e8c996ff61
commit 692c1a5e60

View File

@ -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);