I am planning on adding the javascript Notifications API functionality to a web app I am building.
I took a look at the example from the MDN site:
function spawnNotification(theBody, theIcon, theTitle) {
var options = {
body: theBody,
icon: theIcon
};
var n = new Notification(theTitle, options);
}
It allows the URL of an image (icon
) to be specified as the icon in the notification popup box. Since I am using bootstrap and glyphicons, is there a way that I can use one of the images from the icon font as the icon for the notification?