fix: deprecated `xlink:href` tag

This commit is contained in:
dsrkafuu 2022-03-13 15:42:41 +08:00
parent e6eeb9bfb6
commit 52da6c6f39
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ function genImage(count, theme, length) {
let x = 0; // x axis
const parts = nums.reduce((pre, cur) => {
const uri = images[cur];
const image = `<image x="${x}" y="0" width="${width}" height="${height}" xlink:href="${uri}"/>`;
const image = `<image x="${x}" y="0" width="${width}" height="${height}" href="${uri}"/>`;
x += width;
return pre + image;
}, '');