aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-04-03 02:36:54 +0200
committerVendicated <vendicated@riseup.net>2023-04-03 02:36:54 +0200
commita7e2fb48ba26360881143cfc1da3179575ae0dbe (patch)
treefb80f023d67067288147f88cf584740d88f0ff48
parentae80749dd80b69fd269df23956c66832951ebcd5 (diff)
downloadVencord-a7e2fb48ba26360881143cfc1da3179575ae0dbe.tar.gz
Vencord-a7e2fb48ba26360881143cfc1da3179575ae0dbe.tar.bz2
Vencord-a7e2fb48ba26360881143cfc1da3179575ae0dbe.zip
fix oopsie
-rw-r--r--src/api/SettingsStore.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/api/SettingsStore.ts b/src/api/SettingsStore.ts
index 59c78ed..a5a0402 100644
--- a/src/api/SettingsStore.ts
+++ b/src/api/SettingsStore.ts
@@ -65,7 +65,5 @@ export function getSettingStore<T = any>(group: string, name: string): Setting<T
* getSettingStore but lazy
*/
export function getSettingStoreLazy<T = any>(group: string, name: string) {
- if (!Settings.plugins.SettingsStoreAPI.enabled) throw new Error("Cannot use SettingsStoreAPI without setting as dependency.");
-
return proxyLazy(() => getSettingStore<T>(group, name));
}