mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 18:07:02 -04:00
feat: Experimental browser support
This commit is contained in:
parent
a9eae106c7
commit
cc25753314
14 changed files with 212 additions and 41 deletions
1
src/utils/isWeb.ts
Normal file
1
src/utils/isWeb.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export const IS_WEB = window.IS_WEB = typeof window.DiscordNative === "undefined";
|
|
@ -33,6 +33,10 @@ interface PluginDef {
|
|||
patches?: Omit<Patch, "plugin">[];
|
||||
dependencies?: string[],
|
||||
required?: boolean;
|
||||
/**
|
||||
* Set this if your plugin only works on Browser or Desktop, not both
|
||||
*/
|
||||
target?: "WEB" | "DESKTOP" | "BOTH";
|
||||
}
|
||||
|
||||
export type IpcRes<V = any> = { ok: true; value: V; } | { ok: false, error: any; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue