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

Change additional 36x36 references in the README

This commit is contained in:
Nathan Downs 2019-09-04 12:02:01 -07:00 committed by GitHub
parent 9a9ae9aea0
commit d588017b8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ var img = div.querySelector('img');
// note the div is preserved
img.parentNode === div; // true
img.src; // https://twemoji.maxcdn.com/36x36/2764.png
img.src; // https://twemoji.maxcdn.com/2/72x72/2764.png
img.alt; // \u2764\uFE0F
img.className; // emoji
img.draggable; // false
@ -76,7 +76,7 @@ Here's the list of properties accepted by the optional object that can be passed
base: string, // default MaxCDN
ext: string, // default ".png"
className: string, // default "emoji"
size: string|number, // default "36x36"
size: string|number, // default "72x72"
folder: string // in case it's specified
// it replaces .size info, if any
}
@ -92,7 +92,7 @@ By default it is a function like the following one:
function imageSourceGenerator(icon, options) {
return ''.concat(
options.base, // by default Twitter Inc. CDN
options.size, // by default "36x36" string
options.size, // by default "72x72" string
'/',
icon, // the found emoji as code point
options.ext // by default ".png"