Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if (Modernizr) #1

Closed
Ainaras opened this issue Oct 31, 2014 · 1 comment
Closed

if (Modernizr) #1

Ainaras opened this issue Oct 31, 2014 · 1 comment

Comments

@Ainaras
Copy link

Ainaras commented Oct 31, 2014

Hi,

i realy like this way as svg fallback, but i would

if ( Modernizr && !Modernizr.svg )

change to

if (typeof Modernizr !== 'undefined' && !Modernizr.svg).

For me it is better, if i forget to include Modernizr :)

@tinacious
Copy link
Owner

Hi @Ainaras, good catch. The repository has been updated to version 1.1 which includes the fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants