problem with push.js on web

0

Hello friends, well I tell you that I'm implementing the notifications function from the library of link and I have this code that I'll leave below and I'm supposed to take it out of the page to test it on my localhost but it does not work and that's supposed to be extremely simple, does that library need any additional parameters?

  

Sorry for not leaving the code here but I do not know why but it gets damaged when I put it in, they apologize.

code link by pastebin

    
asked by Jaime Mateus 16.09.2017 в 00:59
source

2 answers

1

The code is correct, the safest thing is that you have a browser restriction for executing the notification directly from the html file, it usually happens with Chrome , test in firefox .

If you insist with Chrome then you could try uploading the code to a server, like your hosting or installing a simple server like WAMP link which is for PHP.

Upload your files to the folder www of wamp

and you enter from localhost , so chrome would not restrict it.

    
answered by 16.09.2017 / 07:24
source
0

Greetings, I'll be able to continue with the code ahead.

    
answered by 16.09.2017 в 18:24