fix: deprecated `xlink:href` tag
This commit is contained in:
parent
e6eeb9bfb6
commit
52da6c6f39
|
@ -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;
|
||||
}, '');
|
||||
|
|
Loading…
Reference in New Issue