Fix loading on session error

This commit is contained in:
Paulo Gustavo Veiga 2022-02-25 09:07:09 -08:00
parent 0629f6f87b
commit 1ae22652df

View File

@ -615,7 +615,6 @@ export default class RestClient implements Client {
if (this.persistenceManager) { if (this.persistenceManager) {
return this.persistenceManager; return this.persistenceManager;
} }
// TODO: Move globals out, make urls configurable
let persistence: PersistenceManager; let persistence: PersistenceManager;
if (editorMode === 'edition') { if (editorMode === 'edition') {
persistence = new RESTPersistenceManager({ persistence = new RESTPersistenceManager({
@ -627,7 +626,7 @@ export default class RestClient implements Client {
}); });
} else { } else {
persistence = new LocalStorageManager( 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 true
); );