diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-16 17:15:15 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-16 17:15:15 +0200 |
commit | 01ae0983b378ca478e7b6891e183718e8c45ed02 (patch) | |
tree | aac88bfa3bf4308fa067377c814fdd45a5601971 /src/components/Updater.tsx | |
parent | 845088ec024d56af4d7fdd4cd861c2aa89dbceb6 (diff) | |
download | Vencord-01ae0983b378ca478e7b6891e183718e8c45ed02.tar.gz Vencord-01ae0983b378ca478e7b6891e183718e8c45ed02.tar.bz2 Vencord-01ae0983b378ca478e7b6891e183718e8c45ed02.zip |
Optimise Web via treeshaking, cleanup build scripts
Diffstat (limited to 'src/components/Updater.tsx')
-rw-r--r-- | src/components/Updater.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/Updater.tsx b/src/components/Updater.tsx index 31060b4..153d5e5 100644 --- a/src/components/Updater.tsx +++ b/src/components/Updater.tsx @@ -158,7 +158,7 @@ function Newer(props: CommonProps) { ); } -export default ErrorBoundary.wrap(function Updater() { +function Updater() { const [repo, err, repoPending] = useAwaiter(getRepo, "Loading..."); React.useEffect(() => { @@ -188,4 +188,6 @@ export default ErrorBoundary.wrap(function Updater() { {isNewer ? <Newer {...commonProps} /> : <Updatable {...commonProps} />} </Forms.FormSection > ); -}); +} + +export default IS_WEB ? null : ErrorBoundary.wrap(Updater); |