Skip to content

Commit

Permalink
feat: send desktop notifications through pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Sep 5, 2024
1 parent 82ad9fb commit 04bfede
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions screenpipe-core/src/deno/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ const pipe = {
throw error;
}
},
sendNotification: (title, body) => {
return pipe.post("http://localhost:11435/notify", { title, body });
},
};

globalThis.setTimeout = (callback, delay) => {
Expand Down

0 comments on commit 04bfede

Please sign in to comment.