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

Fix service initialization when run in FastBoot server #54

Closed
wants to merge 1 commit into from
Closed

Fix service initialization when run in FastBoot server #54

wants to merge 1 commit into from

Conversation

drauschenbach
Copy link

Don’t try and configure Stripe global when it doesn’t exist because w…e’re running from a FastBoot server. Fixes #53

@joshsmith
Copy link
Contributor

@drauschenbach thanks for the PR! It looks like the tests are failing on Travis. I might also recommend a test for the branching logic here, if possible.

@@ -2,6 +2,8 @@
import Ember from 'ember';
import config from '../config/environment';

const isFastBoot = typeof FastBoot !== 'undefined';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify why const over let in this case?

@joshsmith
Copy link
Contributor

I might also suggest giving a glance to #44.

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

Successfully merging this pull request may close these issues.

2 participants