Last active
February 3, 2023 15:28
-
-
Save linmic/4794bea9edafa3cede59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var opt = { | |
type: 'list', | |
title: 'keep burning', | |
message: 'Primary message to display', | |
priority: 1, | |
items: [{ title: '', message: ''}], | |
iconUrl:'../images/icon.png' | |
}; | |
chrome.notifications.create('notify1', opt, function(id) { console.log("Last error:", chrome.runtime.lastError); }); | |
//use console.log("Last error:", chrome.runtime.lastError); for debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var opt = { | |
type: 'list', | |
title: 'keep burning', | |
message: 'Primary message to display', | |
priority: 1, | |
items: [{ title: '', message: ''}], | |
iconUrl:'../images/icon.png' | |
}; | |
chrome.notifications.create('id', opt, function(id) {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If think you made a basic notification which does not need the items line of the final version so just remove that or change your notification type to a list and you should be good to go