0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05: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'
});