diff options
author | Aylur <[email protected]> | 2024-11-24 00:04:07 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-12-02 22:34:01 +0100 |
commit | 2f09ed83386b334f0dfb7f376b99739b15e49fc9 (patch) | |
tree | 4be7848780c4145310a5fa69c60661a61c69ca47 /lang/gjs/src/_app.ts | |
parent | 990f031507b21f8a18c0710016fb76b1f260afe8 (diff) |
gjs gtk4 support
export jsx-runtime
Diffstat (limited to 'lang/gjs/src/_app.ts')
-rw-r--r-- | lang/gjs/src/_app.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lang/gjs/src/_app.ts b/lang/gjs/src/_app.ts index 3dadd04..46497c1 100644 --- a/lang/gjs/src/_app.ts +++ b/lang/gjs/src/_app.ts @@ -53,8 +53,7 @@ export function mkApp(App: App3 | App4) { ${body.includes(";") ? body : `return ${body};`} })`) fn()().then(res).catch(rej) - } - catch (error) { + } catch (error) { rej(error) } }) @@ -69,8 +68,7 @@ export function mkApp(App: App3 | App4) { IO.write_sock_finish(res), ) }) - } - else { + } else { super.vfunc_request(msg, conn) } } @@ -102,8 +100,7 @@ export function mkApp(App: App3 | App4) { try { app.acquire_socket() - } - catch (error) { + } catch (error) { return client(msg => IO.send_message(app.instanceName, msg)!, ...programArgs) } |