mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 04:17:19 +00:00
try meta tag csp D:
This commit is contained in:
@@ -45,6 +45,9 @@ const renderCard = (body: LanyardTypes.Root, params: Parameters): any => {
|
|||||||
return `
|
return `
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" width="410px" height="218px">
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" width="410px" height="218px">
|
||||||
<foreignObject x="0" y="0" width="410" height="218">
|
<foreignObject x="0" y="0" width="410" height="218">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src *; style-src 'unsafe-inline'" />
|
||||||
|
</head>
|
||||||
<div xmlns="http://www.w3.org/1999/xhtml" style="
|
<div xmlns="http://www.w3.org/1999/xhtml" style="
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
@@ -90,7 +93,7 @@ const renderCard = (body: LanyardTypes.Root, params: Parameters): any => {
|
|||||||
</div>
|
</div>
|
||||||
<div style="
|
<div style="
|
||||||
height: 80px;
|
height: 80px;
|
||||||
width: 240px;
|
width: 260px;
|
||||||
">
|
">
|
||||||
<div style="
|
<div style="
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -112,8 +115,8 @@ const renderCard = (body: LanyardTypes.Root, params: Parameters): any => {
|
|||||||
flags.map((v) => {
|
flags.map((v) => {
|
||||||
return(
|
return(
|
||||||
`<img src="https://lanyard-profile-readme.vercel.app/assets/badges/${v}.png" style="
|
`<img src="https://lanyard-profile-readme.vercel.app/assets/badges/${v}.png" style="
|
||||||
width: 15px;
|
width: 20px;
|
||||||
height: 15px;
|
height: 20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translate(0%, -50%);
|
transform: translate(0%, -50%);
|
||||||
|
|||||||
Reference in New Issue
Block a user