jonathantneal / svg4everybody

Use external SVG spritemaps today
https://jonneal.dev/svg4everybody/
Other
3.29k stars 353 forks source link

LEGACY SUPPORT is not defined #158

Open SemenovN opened 7 years ago

SemenovN commented 7 years ago

Hi, I cannot use svg4everybody. I use it as it is in your the manual. But I gets in cosole browser the error message "LEGACY_SUPPORT is undefined" help me

srudolph-credera commented 7 years ago

@SemenovN you're probably using the lib folder version and not the dist folder version of the library, the instructions assume the latter.

mushroom-cn commented 6 years ago

@SemenovN You can redefine a var like this at the top: var LEGACY_SUPPORT = LEGACY_SUPPORT || undefined;. I meet the same issues. @jonathantneal , Can you add this code to lib files. If the code is under "use strict" mode, the script will throw an exception and will not be executed.