Skip to content

Commit 420d98a

Browse files
author
David Pett
committed
Add isFastboot property to service
1 parent f191f28 commit 420d98a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/services/fastboot.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ export default Ember.Service.extend({
88
headers: alias('_fastbootInfo.headers'),
99
host: computed(function() {
1010
return this._fastbootInfo.host();
11+
}),
12+
isFastboot: computed(function() {
13+
return typeof window.document === 'undefined';
1114
})
1215
});

0 commit comments

Comments
 (0)