We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
config:in-viewport
Using ember-lazy-image I now get this error. When I add viewportConfig to the environment.js it is gone.
ember-lazy-image
viewportConfig
environment.js
To fix that we should add a fallback:
// app/initializers/viewport-config.js application.register('config:in-viewport', viewportConfig || {}, { instantiate: false });
I tried const { viewportConfig } = config || {}; but that didn't worked so I did viewportConfig || {}
const { viewportConfig } = config || {};
viewportConfig || {}
The text was updated successfully, but these errors were encountered:
Yeah that's a good catch, I'll issue a bugfix. Thanks!
Sorry, something went wrong.
I learn so much es6 features by reading your code!
No branches or pull requests
Using
ember-lazy-image
I now get this error.When I add
viewportConfig
to theenvironment.js
it is gone.To fix that we should add a fallback:
I tried
const { viewportConfig } = config || {};
but that didn't worked so I didviewportConfig || {}
The text was updated successfully, but these errors were encountered: