Browse Source

fix(desktop): better notification icon

Adam 2 months ago
parent
commit
48f2419d9d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/desktop/src/index.tsx

+ 4 - 1
packages/desktop/src/index.tsx

@@ -107,7 +107,10 @@ const platform: Platform = {
 
 
     await Promise.resolve()
     await Promise.resolve()
       .then(() => {
       .then(() => {
-        const notification = new Notification(title, { body: description ?? "" })
+        const notification = new Notification(title, {
+          body: description ?? "",
+          icon: "https://opencode.ai/favicon-96x96.png",
+        })
         notification.onclick = () => {
         notification.onclick = () => {
           const win = getCurrentWindow()
           const win = getCurrentWindow()
           void win.show().catch(() => undefined)
           void win.show().catch(() => undefined)