This commit is contained in:
the-djmaze
2022-06-16 01:16:19 +02:00
parent 5609a39dd4
commit 28d4a018fd
2 changed files with 15 additions and 14 deletions

View File

@@ -626,7 +626,7 @@ export class MessageModel extends AbstractModel {
});
body.querySelectorAll('[data-x-style-url]').forEach(node => {
forEachObjectEntry(JSON.parse(node.dataset.xStyleUrl), (name, url) => node.style[name] = "url('" + url + "')");
JSON.parse(node.dataset.xStyleUrl).forEach(data => node.style[data[0]] = "url('" + data[1] + "')");
});
}
}