Agregado para enviar notificaciones push.

master
Fernando 2019-05-10 15:16:06 -05:00
parent 811b6f888e
commit a93f05696b
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
webPush = require("../index").webPush
export fun = (subscripcion, titulo, cuerpo) ->
datos = JSON.stringify
titulo: titulo
cuerpo: cuerpo
icono: "https://pseudosubs.com/favicon.png"
tipo: "basico"
webPush.sendNotification (JSON.parse subscripcion), datos