aboutsummaryrefslogtreecommitdiff
path: root/src/utils/misc.tsx
diff options
context:
space:
mode:
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);