From 04bfede3da61f5c85331920e874204a1cd122f44 Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Wed, 4 Sep 2024 18:00:50 -0700 Subject: [PATCH] feat: send desktop notifications through pipes --- screenpipe-core/src/deno/runtime.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/screenpipe-core/src/deno/runtime.js b/screenpipe-core/src/deno/runtime.js index 518cdea2c..4dbeac9bd 100644 --- a/screenpipe-core/src/deno/runtime.js +++ b/screenpipe-core/src/deno/runtime.js @@ -56,6 +56,9 @@ const pipe = { throw error; } }, + sendNotification: (title, body) => { + return pipe.post("http://localhost:11435/notify", { title, body }); + }, }; globalThis.setTimeout = (callback, delay) => {