Add option to disable local storage cache of servers

This commit is contained in:
igoroctaviano 2021-05-13 21:42:46 -03:00
parent 343f06c57d
commit 1cbef867ce
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ window.config = {
extensions: [],
showStudyList: true,
filterQueryParam: false,
disableServersCache: false,
servers: {
dicomWeb: [
{

View File

@ -24,6 +24,10 @@ const preloadedState = {
...sessionStorage.loadState(),
};
if (window.disableServersCache === true) {
delete preloadedState.servers;
}
const store = createStore(
rootReducer,
preloadedState,