💥 ags(arg-handler): do not async requestHandler, remove inline js function from cli

This commit is contained in:
retrozinndev
2025-04-21 17:39:47 -03:00
parent a0f0dcf90a
commit 5a46ef9d62
2 changed files with 3 additions and 11 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ const runnerPlugins: Array<Runner.Plugin> = [
App.start({
instanceName: "astal",
requestHandler: async (request: string, response: (result: any) => void): Promise<void> => {
response(await handleArguments(request));
requestHandler: (request: string, response: (result: any) => void): void => {
response(handleArguments(request));
},
main: (..._args: Array<string>) => {
console.log(`[LOG] Initialized astal instance as: ${ App.instanceName || "astal" }`);