aboutsummaryrefslogtreecommitdiff
path: root/src/utils/misc.tsx
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-23 01:55:39 +0200
committerGitHub <noreply@github.com>2023-05-23 01:55:39 +0200
commit184c03b28e6df72f301f91862dc8bdfb5f074fcb (patch)
treea543a4e3c932d172e76d86365b590265dfa1b0ff /src/utils/misc.tsx
parentec091a79591cf9619dd589102f5b338827b70ad8 (diff)
downloadVencord-184c03b28e6df72f301f91862dc8bdfb5f074fcb.tar.gz
Vencord-184c03b28e6df72f301f91862dc8bdfb5f074fcb.tar.bz2
Vencord-184c03b28e6df72f301f91862dc8bdfb5f074fcb.zip
PluginModal: Anonymise authors (#1176)
Diffstat (limited to 'src/utils/misc.tsx')
-rw-r--r--src/utils/misc.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx
index 59475cb..ec612a9 100644
--- a/src/utils/misc.tsx
+++ b/src/utils/misc.tsx
@@ -18,6 +18,8 @@
import { Clipboard, Toasts } from "@webpack/common";
+import { DevsById } from "./constants";
+
/**
* Recursively merges defaults into an object and returns the same object
* @param obj Object
@@ -100,3 +102,5 @@ export function identity<T>(value: T): T {
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#mobile_tablet_or_desktop
// "In summary, we recommend looking for the string Mobi anywhere in the User Agent to detect a mobile device."
export const isMobile = navigator.userAgent.includes("Mobi");
+
+export const isPluginDev = (id: string) => Object.hasOwn(DevsById, id);