Skip to content

Commit

Permalink
Remove unused storage key/value
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihildt committed Oct 16, 2024
1 parent c7ec9eb commit d312816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
},
"files.associations": {
"*.css": "postcss"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
7 changes: 1 addition & 6 deletions src/composables/useStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ export type Store = {
globalProxy: Ref<ProxyInfo>;
globalProxyDetails: Ref<ProxyDetails>;
historyEntries: Ref<HistoryEntriesMap>;
mullvadAccount: Ref<string>;
proxiesList: Ref<Country[]>;
randomProxyActive: Ref<boolean>;
webRTCStatus: Ref<boolean>;
optionsActiveTab: Ref<Tab>;
};
Expand All @@ -33,22 +31,19 @@ const useStore = (): Store => {
const hostProxies = useBrowserStorageLocal('hostProxies', {});
const hostProxiesDetails = useBrowserStorageLocal('hostProxiesDetails', {});
const historyEntries = useBrowserStorageLocal('historyEntries', {});
const mullvadAccount = useBrowserStorageLocal('mullvadAccount', '');
const proxiesList = useBrowserStorageLocal('proxiesList', [] as Country[]);
const randomProxyActive = useBrowserStorageLocal('randomProxyActive', false);
const webRTCStatus = useBrowserStorageLocal('webRTCStatus', true);
const optionsActiveTab = useBrowserStorageLocal('optionsActiveTab', Tab.SETTINGS);

return {
excludedHosts,
globalProxy,
globalProxyDetails,
hostProxies,
hostProxiesDetails,
historyEntries,
mullvadAccount,
optionsActiveTab,
proxiesList,
randomProxyActive,
webRTCStatus,
};
};
Expand Down

0 comments on commit d312816

Please sign in to comment.