Optimise Web via treeshaking, cleanup build scripts
This commit is contained in:
@ -72,7 +72,7 @@ export default ErrorBoundary.wrap(function Settings() {
|
||||
SettingsDir: <code style={{ userSelect: "text", cursor: "text" }}>{settingsDir}</code>
|
||||
</Forms.FormText>
|
||||
|
||||
{!IS_WEB && <Flex className={classes(Margins.marginBottom20)}>
|
||||
{!IS_WEB && <Flex className={Margins.marginBottom20}>
|
||||
<Button
|
||||
onClick={() => window.DiscordNative.app.relaunch()}
|
||||
size={Button.Sizes.SMALL}
|
||||
@ -95,8 +95,8 @@ export default ErrorBoundary.wrap(function Settings() {
|
||||
Open QuickCSS File
|
||||
</Button>
|
||||
</Flex>}
|
||||
|
||||
<Forms.FormDivider />
|
||||
<Forms.FormTitle tag="h5">Settings</Forms.FormTitle>
|
||||
<Switch
|
||||
value={settings.useQuickCss}
|
||||
onChange={(v: boolean) => settings.useQuickCss = v}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user