feat: categories and option search
This commit is contained in:
@ -24,3 +24,16 @@ export const invoke = async <T>(
|
||||
throw e;
|
||||
}
|
||||
};
|
||||
|
||||
export const invoke_nopopup = async <T>(
|
||||
cmd: string,
|
||||
args?: InvokeArgs,
|
||||
options?: InvokeOptions
|
||||
): Promise<T> => {
|
||||
try {
|
||||
return await real_invoke(cmd, args, options);
|
||||
} catch (e: unknown) {
|
||||
console.error(`Error invoking ${cmd}: ${e}`);
|
||||
throw e;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user