diff --git a/lib/storage/src/index.ts b/lib/storage/src/index.ts index ebf7b42..1a1d91a 100644 --- a/lib/storage/src/index.ts +++ b/lib/storage/src/index.ts @@ -1,5 +1,3 @@ -// TODO(storage): Implement using NativeModules interop instead - import { FileModule } from '@revenge-mod/discord/native' import { getErrorStack } from '@revenge-mod/utils/error' import { mergeDeep } from '@revenge-mod/utils/object' @@ -73,6 +71,8 @@ export function Storage( ) } } + + if (options?.load) this.get() } // React is only initialized right before the init stage, so this is a dummy method @@ -94,8 +94,6 @@ export function getStorage( const storage: Storage = Object.create(Storage.prototype) Storage.call(storage, path, options) - if (options?.load) storage.get() - return storage }