mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 09:52:09 +03:00
d57f189294
closes #6326
11 lines
353 B
JavaScript
11 lines
353 B
JavaScript
import AdaptiveStore from 'ember-simple-auth/session-stores/adaptive';
|
|
import ghostPaths from 'ghost/utils/ghost-paths';
|
|
|
|
const paths = ghostPaths();
|
|
const keyName = `ghost${(paths.subdir.indexOf('/') === 0 ? `-${paths.subdir.substr(1)}` : ``) }:session`;
|
|
|
|
export default AdaptiveStore.extend({
|
|
localStorageKey: keyName,
|
|
cookieName: keyName
|
|
});
|