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不支持這種通知?