diff --git a/packages/mindplot/src/index.js b/packages/mindplot/src/index.js index 3774eac3..6cdeed3a 100644 --- a/packages/mindplot/src/index.js +++ b/packages/mindplot/src/index.js @@ -46,5 +46,5 @@ export { LocalStorageManager, DesignerOptionsBuilder, buildDesigner, - $notify + $notify, }; diff --git a/packages/mindplot/src/indexLoader.ts b/packages/mindplot/src/indexLoader.ts index 8c405551..ffb034f7 100644 --- a/packages/mindplot/src/indexLoader.ts +++ b/packages/mindplot/src/indexLoader.ts @@ -46,7 +46,11 @@ if (!global.memoryPersistence && !global.readOnly) { session: global.lockSession, }); } else { - persistence = new LocalStorageManager(`/c/restful/maps/{id}/${global.historyId ? `${global.historyId}/` : ''}document/xml${!global.isAuth ? '-pub' : ''}`, true); + const historyId = global.historyId ? `${global.historyId}/` : ''; + persistence = new LocalStorageManager( + `/c/restful/maps/{id}/${historyId}document/xml${!global.isAuth ? '-pub' : ''}`, + true, + ); } // Obtain map zoom from query param if it was specified...