summaryrefslogtreecommitdiff
path: root/core/gjs/src/application.ts
diff options
context:
space:
mode:
Diffstat (limited to 'core/gjs/src/application.ts')
-rw-r--r--core/gjs/src/application.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/gjs/src/application.ts b/core/gjs/src/application.ts
index 0ba247e..bf82cbe 100644
--- a/core/gjs/src/application.ts
+++ b/core/gjs/src/application.ts
@@ -22,7 +22,7 @@ type Config = Partial<{
import { setConsoleLogDomain } from "console"
import { exit, programArgs } from "system"
-class AstalJS extends Astal.Application {
+export default new (class AstalJS extends Astal.Application {
static { GObject.registerClass(this) }
eval(body: string): Promise<any> {
@@ -100,6 +100,4 @@ class AstalJS extends Astal.Application {
this.runAsync([])
}
-}
-
-export default new AstalJS()
+})