quit request
This commit is contained in:
parent
8751acf68f
commit
2be44b8739
1 changed files with 2 additions and 1 deletions
3
app.tsx
3
app.tsx
|
|
@ -35,7 +35,8 @@ App.start({
|
|||
console.log(`Caelestia started in ${Date.now() - now}ms`);
|
||||
},
|
||||
requestHandler(request, res) {
|
||||
if (request === "reload css") loadStyleAsync().catch(console.error);
|
||||
if (request === "quit") App.quit();
|
||||
else if (request === "reload css") loadStyleAsync().catch(console.error);
|
||||
else if (request.startsWith("show")) App.get_window(request.split(" ")[1])?.show();
|
||||
else if (request === "media play pause") Players.get_default().lastPlayer?.play_pause();
|
||||
else if (request === "media next") Players.get_default().lastPlayer?.next();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue