summaryrefslogtreecommitdiff
path: root/examples/js/simple-bar/app.ts
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-10-15 01:26:40 +0200
committerAylur <[email protected]>2024-10-15 01:26:40 +0200
commitd63332b533b390e7e68f8f1fc2432958c4d36a4f (patch)
treeb0abaff53310c0caab0f4074eb68ee8baa963300 /examples/js/simple-bar/app.ts
parent2f71cd4c08bb4514efe43533e6a5d03535204c29 (diff)
update examples
Diffstat (limited to 'examples/js/simple-bar/app.ts')
-rw-r--r--examples/js/simple-bar/app.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/js/simple-bar/app.ts b/examples/js/simple-bar/app.ts
index 05f043a..4b7ea48 100644
--- a/examples/js/simple-bar/app.ts
+++ b/examples/js/simple-bar/app.ts
@@ -1,8 +1,13 @@
-import { App } from "astal"
+import { App } from "astal/gtk3"
import style from "./style.scss"
import Bar from "./widget/Bar"
App.start({
css: style,
+ instanceName: "js",
+ requestHandler(request, res) {
+ print(request)
+ res("ok")
+ },
main: () => App.get_monitors().map(Bar),
})