Skip to content

Commit

Permalink
Update session-stores/cookie with typeof guard (mainmatter#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
duggiefresh authored and Arjan Singh committed Apr 28, 2016
1 parent 023a583 commit f33c54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/session-stores/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default BaseStore.extend({
if (this.get('_fastboot.isFastBoot')) {
return false;
} else {
const visibilityState = document.visibilityState || 'visible';
const visibilityState = typeof document !== 'undefined' ? document.visibilityState || 'visible';
return visibilityState === 'visible';
}
}).volatile(),
Expand Down

0 comments on commit f33c54c

Please sign in to comment.