mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-09 14:43:03 -04:00
require differ even when not on a dev build
This commit is contained in:
parent
83dc1a52c3
commit
a0f3747187
2 changed files with 7 additions and 10 deletions
|
@ -27,10 +27,7 @@ import { Button, Clipboard, Forms, Parser, React, Switch, TextArea, TextInput }
|
||||||
|
|
||||||
import { SettingsTab, wrapTab } from "./shared";
|
import { SettingsTab, wrapTab } from "./shared";
|
||||||
|
|
||||||
// Do not include diff in non dev builds (side effects import)
|
var differ = require("diff") as typeof import("diff");
|
||||||
if (IS_DEV) {
|
|
||||||
var differ = require("diff") as typeof import("diff");
|
|
||||||
}
|
|
||||||
|
|
||||||
const findCandidates = debounce(function ({ find, setModule, setError }) {
|
const findCandidates = debounce(function ({ find, setModule, setError }) {
|
||||||
const candidates = search(find);
|
const candidates = search(find);
|
||||||
|
|
|
@ -87,12 +87,12 @@ export default definePlugin({
|
||||||
<><Forms.FormTitle>
|
<><Forms.FormTitle>
|
||||||
<Forms.FormTitle>How to use?</Forms.FormTitle>
|
<Forms.FormTitle>How to use?</Forms.FormTitle>
|
||||||
</Forms.FormTitle>
|
</Forms.FormTitle>
|
||||||
<Forms.FormText>
|
<Forms.FormText>
|
||||||
<Forms.FormText>Go to <Link href="/settings/appearance" onClick={e => { e.preventDefault(); closeAllModals(); FluxDispatcher.dispatch({ type: "USER_SETTINGS_MODAL_SET_SECTION", section: "Appearance" }); }}>Appearance Settings</Link> tab.</Forms.FormText>
|
<Forms.FormText>Go to <Link href="/settings/appearance" onClick={e => { e.preventDefault(); closeAllModals(); FluxDispatcher.dispatch({ type: "USER_SETTINGS_MODAL_SET_SECTION", section: "Appearance" }); }}>Appearance Settings</Link> tab.</Forms.FormText>
|
||||||
<Forms.FormText>Scroll down to "In-app Icons" and click on "Preview App Icon".</Forms.FormText>
|
<Forms.FormText>Scroll down to "In-app Icons" and click on "Preview App Icon".</Forms.FormText>
|
||||||
<Forms.FormText>And upload your own custom icon!</Forms.FormText>
|
<Forms.FormText>And upload your own custom icon!</Forms.FormText>
|
||||||
<Forms.FormText>You can only use links when you are uploading your Custom Icon.</Forms.FormText>
|
<Forms.FormText>You can only use links when you are uploading your Custom Icon.</Forms.FormText>
|
||||||
</Forms.FormText></>
|
</Forms.FormText></>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue