Skip to content

Commit 866d2ef

Browse files
Merge pull request #3014 from felixbuenemann/fix-local-storage-fastboot-check
Fix FastBoot check in LocalStorageStore always returning false
2 parents a6e44ad + 20387a6 commit 866d2ef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/ember-simple-auth/src/session-stores/local-storage.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ export default class LocalStorageStore extends BaseStore {
4040
constructor(owner: any) {
4141
super(owner);
4242

43-
this._isFastBoot = this.hasOwnProperty('_isFastBoot')
44-
? this._isFastBoot
45-
: isFastBoot(getOwner(this));
43+
this._isFastBoot = isFastBoot(getOwner(this));
4644
if (!this.get('_isFastBoot')) {
4745
window.addEventListener('storage', this._handleStorageEvent);
4846
}

0 commit comments

Comments
 (0)