mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 04:17:19 +00:00
xmlns add
This commit is contained in:
@@ -23,8 +23,7 @@ export default function handler(
|
|||||||
|
|
||||||
axios.get(`https://api.lanyard.rest/v1/users/${userid}`)
|
axios.get(`https://api.lanyard.rest/v1/users/${userid}`)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
// let svg = renderCard(response.data);
|
res.status(200).send(renderCard(response.data, params));
|
||||||
res.send(renderCard(response.data, params));
|
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ const renderCard = (body: LanyardTypes.Root, params: Parameters): any => {
|
|||||||
console.log(Object.keys(body.data.activities).length);
|
console.log(Object.keys(body.data.activities).length);
|
||||||
|
|
||||||
return `
|
return `
|
||||||
<svg width="400px" height="218px">
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400px" height="218px">
|
||||||
|
|
||||||
<foreignObject>
|
<foreignObject>
|
||||||
<div xmlns="http://www.w3.org/1999/xhtml" style="
|
<div xmlns="http://www.w3.org/1999/xhtml" style="
|
||||||
|
|||||||
Reference in New Issue
Block a user