Hi, it's not an code error.
Since new Chrome version Notification have to bieng use by "Secure Origins".
So, if you want use Notification http address muste be : localhost OR https://
I you want you cant also start chrome with cmd line with this line : -unsafely-treat-insecure-origin-as-secure="http://example.com"
You can try Notification via native Html5 : new Notification("hello")
Have a nice day.
More info here : https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins
push.min.js 报错:Uncaught (in promise) PushError: permission request declined
解决方法:使用 https 开头的 url 或者实用 原生 html5