Skip to content

Commit fbe99b3

Browse files
author
David Pett
committed
Add isFastBoot property to service
1 parent 420d98a commit fbe99b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/services/fastboot.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* global FastBoot */
12
import Ember from "ember";
23

34
let alias = Ember.computed.alias;
@@ -9,7 +10,7 @@ export default Ember.Service.extend({
910
host: computed(function() {
1011
return this._fastbootInfo.host();
1112
}),
12-
isFastboot: computed(function() {
13-
return typeof window.document === 'undefined';
13+
isFastBoot: computed(function() {
14+
return typeof FastBoot !== 'undefined';
1415
})
1516
});

0 commit comments

Comments
 (0)