From 1029b73cca84ec55d8c7ea4086ac8075d4c3a673 Mon Sep 17 00:00:00 2001 From: ef Date: Sat, 7 Mar 2020 22:12:08 +0100 Subject: [PATCH] push geholt --- push.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 push.js diff --git a/push.js b/push.js new file mode 100644 index 0000000..e2e93e4 --- /dev/null +++ b/push.js @@ -0,0 +1,11 @@ +push_ask = function() { + Notification.requestPermission(function() { + }); +} + +push_send = function(t, b) { + new Notification(t, { + body : b, + icon : 'favicon.png' + }); +} \ No newline at end of file