mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix loading on session error
This commit is contained in:
parent
0629f6f87b
commit
1ae22652df
@ -615,7 +615,6 @@ export default class RestClient implements Client {
|
||||
if (this.persistenceManager) {
|
||||
return this.persistenceManager;
|
||||
}
|
||||
// TODO: Move globals out, make urls configurable
|
||||
let persistence: PersistenceManager;
|
||||
if (editorMode === 'edition') {
|
||||
persistence = new RESTPersistenceManager({
|
||||
@ -627,7 +626,7 @@ export default class RestClient implements Client {
|
||||
});
|
||||
} else {
|
||||
persistence = new LocalStorageManager(
|
||||
`/c/restful/maps/{id}/${global.historyId ? `${global.historyId}/` : ''}document/xml${!global.isAuth ? '-pub' : ''
|
||||
`/c/restful/maps/{id}/${global.historyId ? `${global.historyId}/` : ''}document/xml${editorMode !== 'showcase' ? '-pub' : ''
|
||||
}`,
|
||||
true
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user