-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Replace canUseDOM with Adapter.supportsFastboot. #175
Conversation
Can this merge? |
fwiw I've been using it in a production app for the last 11 weeks. |
Yeah, I reviewed the commit and then booted my app with it and it's good to go IMO. @poteto needs to merge though |
Fixed new merge conflicts. |
Rebased |
I believe we don't need this anymore. I have been using this addon with fastboot without any issues. Can you confirm we can close this @CvX? |
Implementation of an idea in adopted-ember-addons#162 by @kellyselden
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good! Thanks for working on this.
* build: use last version of ember-metrics * refactor: remove use of canUseDOM See adopted-ember-addons/ember-metrics#175 * refactor: use removeFromDOM util * fix: tests failing because assert import is not done * refactor: use native class
Implementation of an idea in #162 by @kellyselden
Fixes ember-metrics errors in Fastboot, like
TypeError: window.ga is not a function
(since Fastboot does provide DOM-like environment but ember-metrics still tried to load adapters).