From b44b479b3db4f1d00e1d0bb80dad1db04dae6574 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Sat, 18 Jan 2025 18:27:47 +1100
Subject: requests: change format

---
 app.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'app.tsx')

diff --git a/app.tsx b/app.tsx
index 46bc1a1..dee26b7 100644
--- a/app.tsx
+++ b/app.tsx
@@ -37,9 +37,9 @@ App.start({
     },
     requestHandler(request, res) {
         if (request === "quit") App.quit();
-        else if (request === "reload css") loadStyleAsync().catch(console.error);
+        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 play-pause") Players.get_default().lastPlayer?.play_pause();
         else if (request === "media next") Players.get_default().lastPlayer?.next();
         else if (request === "media previous") Players.get_default().lastPlayer?.previous();
         else if (request === "media stop") Players.get_default().lastPlayer?.stop();
-- 
cgit v1.2.3-freya

