diff --git a/src/store/electron-store.js b/src/store/electron-store.js index 3feaffc..c58c3cd 100644 --- a/src/store/electron-store.js +++ b/src/store/electron-store.js @@ -9,6 +9,11 @@ export let namespacedElectronStore = null; export default store; +/** + * create an electron store namespaced to the current url. + * The url is hashed since windows is more picky and doesn't allow : + * @param {string} url empire url + */ export function initNamespacedStore(url) { - namespacedElectronStore = new Store({ name: url }); + namespacedElectronStore = new Store({ name: btoa(url) }); }