Add Vencord Loading & tray icon
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export const GET_PRELOAD_FILE = "VCD_GET_PRELOAD_FILE";
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
|
||||
8
src/shared/utils/once.ts
Normal file
8
src/shared/utils/once.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export function once<T extends Function>(fn: T): T {
|
||||
let called = false;
|
||||
return function (this: any, ...args: any[]) {
|
||||
if (called) return;
|
||||
called = true;
|
||||
return fn.apply(this, args);
|
||||
} as any;
|
||||
}
|
||||
Reference in New Issue
Block a user