2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-16 17:45:09 +00:00

Fix case in preserveAspectRatio attribute

This commit is contained in:
cyberalien 2017-04-14 11:02:23 +03:00
parent 0095938ef4
commit b20af2764c

View File

@ -40,8 +40,8 @@
html = html.slice(pos + 1);
}
// Fix viewBox attribute
html = html.replace('viewbox=', 'viewBox=');
// Fix lower case attributes
html = html.replace('viewbox=', 'viewBox=').replace('preserveaspectratio=', 'preserveAspectRatio=');
// Add body
pos = html.indexOf('</');