Agregado para enviar notificaciones push.
parent
811b6f888e
commit
a93f05696b
|
@ -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
|
Loading…
Reference in New Issue