fix(tracker): add check for sets

This commit is contained in:
sylenien 2022-06-23 11:35:03 +02:00 committed by Delirium
parent 7499b05431
commit 5e8b663fb6

View file

@ -36,7 +36,7 @@ export default function (app: App): void {
sendPlaceholder(id, this)
} else {
app.send(new SetNodeAttributeURLBased(id, 'src', src, app.getBaseHref()));
app.send(new SetNodeAttribute(id, 'srcset', srcset, app.getBaseHref()));
srcset && app.send(new SetNodeAttribute(id, 'srcset', srcset));
}
});