0
我的代码可以在Windows 7 Chrome中正确运行,但不能在Ubuntu Chrome中运行。Chrome通知不起作用
var opt = {
type: "list",
title: "Primary Title",
message: "Primary message to display",
iconUrl: "../icon.png",
items: [{ title: "Item1", message: "This is item 1."},
{ title: "Item2", message: "This is item 2."},
{ title: "Item3", message: "This is item 3."}]
}
chrome.notifications.create(new Date().getTime().toString(), opt, function() {});
在Ubuntu中它看起来像基本通知。它出什么问题了?也许Ubuntu的Chrome不支持这种通知?