2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Use AdaptiveStore for cookie fallback if local storage is unavailable

closes #5829
- switch application session store to inherit from ESA's `AdaptiveStore` instead of `LocalStorageStore`
This commit is contained in:
Kevin Ansfield 2016-01-05 13:16:41 +00:00
parent 97919abdde
commit 50c3905cb3

View file

@ -1,5 +1,6 @@
import LocalStorageStore from 'ember-simple-auth/session-stores/local-storage';
import AdaptiveStore from 'ember-simple-auth/session-stores/adaptive';
export default LocalStorageStore.extend({
key: 'ghost:session'
export default AdaptiveStore.extend({
localStorageKey: 'ghost:session',
cookieName: 'ghost:session'
});