1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-06-15 03:35:16 +00:00
This commit is contained in:
Nicolás Bevacqua 2017-06-01 18:33:39 +00:00 committed by GitHub
commit aec37de6c6
2 changed files with 13 additions and 14 deletions

View File

@ -442,7 +442,7 @@ wru.test([{
div.firstChild.className === 'emoji' &&
div.firstChild.getAttribute('draggable') === 'false' &&
div.firstChild.getAttribute('alt') === "5⃣" &&
div.firstChild.src === 'http://twemoji.maxcdn.com/36x36/35-20e3.png'
div.firstChild.src === 'https://twemoji.maxcdn.com/36x36/35-20e3.png'
);
wru.assert('the length is preserved',
div.getElementsByTagName('img')[0].alt.length === 3);
@ -457,7 +457,7 @@ wru.test([{
div.firstChild.className === 'emoji' &&
div.firstChild.getAttribute('draggable') === 'false' &&
div.firstChild.getAttribute('alt') === "5⃣" &&
div.firstChild.src === 'http://twemoji.maxcdn.com/36x36/35-20e3.png'
div.firstChild.src === 'https://twemoji.maxcdn.com/36x36/35-20e3.png'
);
wru.assert('the length is preserved',
div.getElementsByTagName('img')[0].alt.length === 2);

View File

@ -24,8 +24,7 @@ var twemoji = (function (
/////////////////////////
// default assets url, by default will be Twitter Inc. CDN
base: (location.protocol === 'https:' ? 'https:' : 'http:') +
'//twemoji.maxcdn.com/',
base: 'https://twemoji.maxcdn.com/',
// default assets file extensions, by default '.png'
ext: '.png',