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

Replace canUseDOM with Adapter.supportsFastboot. #175

Merged
merged 1 commit into from
Aug 26, 2019

Conversation

CvX
Copy link
Contributor

@CvX CvX commented Sep 24, 2017

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).

@tonycoco
Copy link
Contributor

tonycoco commented Dec 5, 2017

Can this merge?

@CvX
Copy link
Contributor Author

CvX commented Dec 5, 2017

fwiw I've been using it in a production app for the last 11 weeks.

@tonycoco
Copy link
Contributor

tonycoco commented Dec 5, 2017

Yeah, I reviewed the commit and then booted my app with it and it's good to go IMO. @poteto needs to merge though

@CvX CvX force-pushed the fastboot-fix branch from bd6eafc to 2e82234 Compare May 8, 2018 12:19
@CvX
Copy link
Contributor Author

CvX commented May 8, 2018

Fixed new merge conflicts.

@CvX
Copy link
Contributor Author

CvX commented Mar 21, 2019

Rebased

@josemarluedke
Copy link
Collaborator

josemarluedke commented Aug 23, 2019

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?

@CvX
Copy link
Contributor Author

CvX commented Aug 26, 2019

The FastBoot bug has most likely been fixed in #220.

This PR would still apply the refactor suggested in #162.

Copy link
Collaborator

@josemarluedke josemarluedke left a 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.

@josemarluedke josemarluedke merged commit 3e9206c into adopted-ember-addons:master Aug 26, 2019
@voltidev voltidev mentioned this pull request Apr 29, 2020
ndekeister-us added a commit to peopledoc/ember-metrics-pendo that referenced this pull request Feb 19, 2021
ndekeister-us added a commit to peopledoc/ember-metrics-pendo that referenced this pull request Feb 22, 2021
ndekeister-us added a commit to peopledoc/ember-metrics-pendo that referenced this pull request Feb 22, 2021
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants