Skip to content

Commit

Permalink
fixed fastboot service check (#441)
Browse files Browse the repository at this point in the history
* fixed fastboot service

* Update package.json
  • Loading branch information
davidpett authored and miguelcobain committed Jul 21, 2016
1 parent 7ed6bfa commit ed33617
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addon/components/paper-sidenav-inner.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* globals FastBoot */
import Ember from 'ember';
import TransitionMixin from 'ember-css-transitions/mixins/transition-mixin';

Expand All @@ -10,7 +11,6 @@ export default Component.extend(TransitionMixin, {
transitionTriggers: ['isLockedOpen:md-locked-open', 'closed:md-closed'],

constants: inject.service(),
fastboot: inject.service(),
paperSidenav: inject.service(),

name: 'default',
Expand All @@ -27,7 +27,7 @@ export default Component.extend(TransitionMixin, {
init() {
// need to updateLockedOpen() first because otherwise the transition classes
// would be applied due to transition mixin's `init`
if (!Ember.get(this, 'fastboot.isFastBoot')) {
if (typeof FastBoot === 'undefined') {
this.updateLockedOpen();
}
this._super(...arguments);
Expand Down
4 changes: 2 additions & 2 deletions app/services/sniffer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* globals FastBoot */
import Ember from 'ember';

let isString = function(value) {
Expand All @@ -13,7 +14,6 @@ let toInt = function(str) {
};

export default Ember.Service.extend({
fastboot: Ember.inject.service(),
vendorPrefix: '',
transitions: false,
animations: false,
Expand All @@ -26,7 +26,7 @@ export default Ember.Service.extend({

init() {
this._super(...arguments);
if (Ember.get(this, 'fastboot.isFastBoot')) {
if (typeof FastBoot !== 'undefined') {
return;
}

Expand Down

0 comments on commit ed33617

Please sign in to comment.