I just see that window.webkitnotifications
is no more available in Chrome version 35.0.1916.114 m.
Is it your case also ?
I've written a little fallback for the notifications API. I should fix it up a little bit further on.
来源:https://stackoverflow.com/questions/23884596/webkitnotifications-deprecated-in-chrome-version-35-0-1916-114-m