1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-11-16 11:18:37 +00:00

Fix preview maxcdn links + svg asset path

This commit is contained in:
Justine De Caires 2021-03-10 21:13:12 -08:00
parent a10463bdbc
commit 54b69b0d73
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
vertical-align: -0.1em;
}
</style>
<script src="https://twemoji.maxcdn.com/12.0.4/twemoji.min.js" crossorigin="anonymous"></script>
<script src="https://twemoji.maxcdn.com/v/latest/twemoji.min.js" crossorigin="anonymous"></script>
</head>
<body>
<ul class="emoji-list">
@ -3109,7 +3109,7 @@
var ul = document.getElementsByTagName('ul')[0];
var total = ul.getElementsByTagName('li').length;
var elapsed = +new Date;
twemoji.parse(ul, {"folder":"../svg","ext":".svg","base":""});
twemoji.parse(ul, {"folder":"../../assets/svg","ext":".svg","base":""});
elapsed = (+new Date) - elapsed;
document.body.insertBefore(
document.createTextNode(total + ' emoji parsed in ' + elapsed + 'ms'),

View File

@ -25,7 +25,7 @@
vertical-align: -0.1em;
}
</style>
<script src="https://twemoji.maxcdn.com/12.0.4/twemoji.min.js" crossorigin="anonymous"></script>
<script src="https://twemoji.maxcdn.com/v/latest/twemoji.min.js" crossorigin="anonymous"></script>
</head>
<body>
<ul class="emoji-list">