TagSpaces is an offline, open source, document manager with tagging support
revoke objectStoreAPI cached object (#1257)
Stanimir7438e2a8ef3b
diff --git a/app/reducers/locations.ts b/app/reducers/locations.tsindex 29b17192e..357c98253 100644--- a/app/reducers/locations.ts+++ b/app/reducers/locations.ts@@ -17,8 +17,9 @@*/import uuidv1 from 'uuid';-import { immutablySwapItems } from '../utils/misc';+import { immutablySwapItems } from '-/utils/misc';import { actions as AppActions } from '../reducers/app';+import PlatformIO from '-/services/platform-io';export const types = {ADD_LOCATION: 'APP/ADD_LOCATION',@@ -164,6 +165,10 @@ export const actions = {dispatch: (actions: Object) => void) => {dispatch(actions.changeLocation(location));+ if (PlatformIO.haveObjectStoreSupport()) {+ // disableObjectStoreSupport to revoke objectStoreAPI cached object+ PlatformIO.disableObjectStoreSupport();+ }dispatch(AppActions.openLocation(location));dispatch(AppActions.setReadOnlyMode(location.isReadOnly || false));},